|
|
@ -18,6 +18,7 @@ class WindowManager { |
|
|
|
|
|
|
|
|
|
|
|
ipcMain.on("WindowManager::openFileDialog", () => this.app.openFile()); |
|
|
|
ipcMain.on("WindowManager::openFileDialog", () => this.app.openFile()); |
|
|
|
ipcMain.on("WindowManager::openFile", (_, path) => this.app.openFile(path)); |
|
|
|
ipcMain.on("WindowManager::openFile", (_, path) => this.app.openFile(path)); |
|
|
|
|
|
|
|
ipcMain.on("WindowManager::toggleMaximize", () => this.mainWindow?.isMaximized() ? this.mainWindow?.unmaximize() : this.mainWindow?.maximize()); |
|
|
|
ipcMain.handle("WindowManager::resize", (_, height) => this.windows.settings.setSize(800, height + (process.platform === "win32" ? 50 : 0), true)); |
|
|
|
ipcMain.handle("WindowManager::resize", (_, height) => this.windows.settings.setSize(800, height + (process.platform === "win32" ? 50 : 0), true)); |
|
|
|
ipcMain.handle("WindowManager::presentFullscreen", (_, fullscreen) => this.windows.main.setFullScreen(fullscreen)); |
|
|
|
ipcMain.handle("WindowManager::presentFullscreen", (_, fullscreen) => this.windows.main.setFullScreen(fullscreen)); |
|
|
|
} |
|
|
|
} |
|
|
|