fix: staging hard coded true

This commit is contained in:
Zamitto
2025-05-22 14:04:18 -03:00
parent eab9f92b3e
commit e734b6937a
2 changed files with 4 additions and 5 deletions

View File

@@ -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"),

View File

@@ -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();
}
});