Remove unnecessary code in window-manager-ipcs.ts

This commit is contained in:
Shidorien
2023-12-21 04:08:45 +01:00
parent 19998facc7
commit e21b731e10
-3
View File
@@ -10,9 +10,6 @@ const autoUpdaterService = AutoUpdaterService.getInstance();
// Native windows control, do not pass through IPC service
ipcMain.on("close-window", async (event) => {
if (event.sender.getURL().includes("index.html")) {
autoUpdaterService.setHaveBeenUpdated(false);
}
BrowserWindow.fromWebContents(event.sender)?.close();
});