1
0
Eugene Pankov 7 жил өмнө
parent
commit
ca71ec24f8
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      app/lib/window.ts

+ 4 - 1
app/lib/window.ts

@@ -250,7 +250,10 @@ export class Window {
             this.window.moveTop()
         })
 
-        ipcMain.on('window-close', () => {
+        ipcMain.on('window-close', event => {
+            if (event.sender !== this.window.webContents) {
+                return
+            }
             this.closing = true
             this.window.close()
         })