From adb36e3fa23b681967d9fd5ed0bbf08af7943f41 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Tue, 17 Feb 2026 20:59:22 +0100 Subject: [PATCH] Fix: We are not on apple system. Don't care about Darwin --- main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c44438b..972e3a7 100644 --- a/main.js +++ b/main.js @@ -157,6 +157,8 @@ ipcMain.on("set-progress", (event, percent) => { ipcMain.on("window-minimize", () => { if (mainWindow) mainWindow.minimize(); }); + +// Toggle Maximize -> UnMaximize ipcMain.on("window-maximize", () => { if (mainWindow) { if (mainWindow.isMaximized()) { @@ -166,6 +168,7 @@ ipcMain.on("window-maximize", () => { } } }); + ipcMain.on("window-close", () => { if (mainWindow) mainWindow.close(); }); @@ -248,7 +251,7 @@ app.whenReady().then(async () => { }); - configFeatures.discordRPC ? startRPC() : ""; + configFeatures.discordRPC ? startRPC() : ""; // Discord RPC await createMainWindow(); configFeatures.autoUpdate ? AutoUpdater(mainWindow) : ""; // Auto Update @@ -261,7 +264,6 @@ app.whenReady().then(async () => { app.on("window-all-closed", () => { logger.info("All Window Closed, shuting down app"); - if (process.platform !== "darwin") app.quit(); }); app.on("before-quit", () => {