fixed window-restore icon - fixes #2712

This commit is contained in:
Eugene Pankov
2021-06-28 21:50:16 +02:00
parent 63355d1a74
commit 30265699d4
5 changed files with 21 additions and 15 deletions

View File

@@ -304,17 +304,6 @@ export class Window {
})
})
ipcMain.on('window-toggle-maximize', event => {
if (!this.window || event.sender !== this.window.webContents) {
return
}
if (this.window.isMaximized()) {
this.window.unmaximize()
} else {
this.window.maximize()
}
})
ipcMain.on('window-minimize', event => {
if (!this.window || event.sender !== this.window.webContents) {
return