mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 05:41:03 +00:00
fix: staging hard coded true
This commit is contained in:
@@ -4,8 +4,7 @@ import { SystemPath } from "./services/system-path";
|
|||||||
|
|
||||||
export const defaultDownloadsPath = SystemPath.getPath("downloads");
|
export const defaultDownloadsPath = SystemPath.getPath("downloads");
|
||||||
|
|
||||||
export const isStaging =
|
export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging");
|
||||||
true || import.meta.env.MAIN_VITE_API_URL.includes("staging");
|
|
||||||
|
|
||||||
export const windowsStartMenuPath = path.join(
|
export const windowsStartMenuPath = path.join(
|
||||||
SystemPath.getPath("appData"),
|
SystemPath.getPath("appData"),
|
||||||
|
|||||||
@@ -143,15 +143,15 @@ app.on("window-all-closed", () => {
|
|||||||
WindowManager.mainWindow = null;
|
WindowManager.mainWindow = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
let canAppBeClose = false;
|
let canAppBeClosed = false;
|
||||||
|
|
||||||
app.on("before-quit", async (e) => {
|
app.on("before-quit", async (e) => {
|
||||||
if (!canAppBeClose) {
|
if (!canAppBeClosed) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
/* Disconnects libtorrent */
|
/* Disconnects libtorrent */
|
||||||
PythonRPC.kill();
|
PythonRPC.kill();
|
||||||
await clearGamesPlaytime();
|
await clearGamesPlaytime();
|
||||||
canAppBeClose = true;
|
canAppBeClosed = true;
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user