diff --git a/desktop/src/main.ts b/desktop/src/main.ts index 360b04ff6..a3cb66538 100644 --- a/desktop/src/main.ts +++ b/desktop/src/main.ts @@ -31,8 +31,6 @@ import { isDev } from "./main/util"; let appIsQuitting = false; -let updateIsAvailable = false; - export const isAppQuitting = (): boolean => { return appIsQuitting; }; @@ -41,14 +39,6 @@ export const setIsAppQuitting = (value: boolean): void => { appIsQuitting = value; }; -export const isUpdateAvailable = (): boolean => { - return updateIsAvailable; -}; - -export const setIsUpdateAvailable = (value: boolean): void => { - updateIsAvailable = value; -}; - /** * The URL where the renderer HTML is being served from. */ diff --git a/desktop/src/main/services/app-update.ts b/desktop/src/main/services/app-update.ts index 996f73633..6590bea26 100644 --- a/desktop/src/main/services/app-update.ts +++ b/desktop/src/main/services/app-update.ts @@ -2,7 +2,7 @@ import { compareVersions } from "compare-versions"; import { app, BrowserWindow } from "electron"; import { default as electronLog } from "electron-log"; import { autoUpdater } from "electron-updater"; -import { setIsAppQuitting, setIsUpdateAvailable } from "../../main"; +import { setIsAppQuitting } from "../../main"; import { AppUpdateInfo } from "../../types/ipc"; import log from "../log"; import { userPreferences } from "../stores/user-preferences"; @@ -72,8 +72,6 @@ const checkForUpdatesAndNotify = async (mainWindow: BrowserWindow) => { log.error("Auto update failed", error); showUpdateDialog({ autoUpdatable: false, version }); }); - - setIsUpdateAvailable(true); }; /**