diff --git a/src/main/autoStart.ts b/src/main/autoStart.ts index 9c0b885..8a6eaf6 100644 --- a/src/main/autoStart.ts +++ b/src/main/autoStart.ts @@ -46,7 +46,7 @@ const autoStartWindowsMac: AutoStart = { isEnabled: () => app.getLoginItemSettings().openAtLogin, wasAutoStarted: () => app.getLoginItemSettings().wasOpenedAtLogin, enable: () => app.setLoginItemSettings({ openAtLogin: true }), - disable: () => app.setLoginItemSettings({ openAtLogin: false }), + disable: () => app.setLoginItemSettings({ openAtLogin: false }) }; export const autoStart = process.platform === "linux" ? makeAutoStartLinux() : autoStartWindowsMac; diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 629c82b..cd2fd62 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -24,6 +24,7 @@ import type { SettingsStore } from "shared/utils/SettingsStore"; import { ICON_PATH } from "../shared/paths"; import { createAboutWindow } from "./about"; import { initArRPC } from "./arrpc"; +import { autoStart } from "./autoStart"; import { DATA_DIR, DEFAULT_HEIGHT, @@ -39,7 +40,6 @@ import { createSplashWindow } from "./splash"; import { makeLinksOpenExternally } from "./utils/makeLinksOpenExternally"; import { applyDeckKeyboardFix, askToApplySteamLayout, isDeckGameMode } from "./utils/steamOS"; import { downloadVencordFiles, ensureVencordFiles } from "./utils/vencordLoader"; -import { autoStart } from "./autoStart"; let isQuitting = false; let tray: Tray;