From e734b6937ac2ef4e69543cc10ba419bbcf828f76 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 22 May 2025 14:04:18 -0300 Subject: [PATCH] fix: staging hard coded true --- src/main/constants.ts | 3 +-- src/main/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/constants.ts b/src/main/constants.ts index 5625a53e..16642d50 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -4,8 +4,7 @@ import { SystemPath } from "./services/system-path"; export const defaultDownloadsPath = SystemPath.getPath("downloads"); -export const isStaging = - true || import.meta.env.MAIN_VITE_API_URL.includes("staging"); +export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging"); export const windowsStartMenuPath = path.join( SystemPath.getPath("appData"), diff --git a/src/main/index.ts b/src/main/index.ts index 17eacd97..de88a548 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -143,15 +143,15 @@ app.on("window-all-closed", () => { WindowManager.mainWindow = null; }); -let canAppBeClose = false; +let canAppBeClosed = false; app.on("before-quit", async (e) => { - if (!canAppBeClose) { + if (!canAppBeClosed) { e.preventDefault(); /* Disconnects libtorrent */ PythonRPC.kill(); await clearGamesPlaytime(); - canAppBeClose = true; + canAppBeClosed = true; app.quit(); } });