From abb6a341bd3af0611f6f2c695011ce141b43a75d Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Tue, 14 Nov 2023 12:52:20 +0100 Subject: [PATCH] Force disable auto update --- .../left/settings/SettingsExperimental.tsx | 8 ------ src/electron/window.ts | 9 +++---- src/global/actions/ui/misc.ts | 26 ------------------- 3 files changed, 4 insertions(+), 39 deletions(-) diff --git a/src/components/left/settings/SettingsExperimental.tsx b/src/components/left/settings/SettingsExperimental.tsx index 3a46ffcc6..9c2702bfb 100644 --- a/src/components/left/settings/SettingsExperimental.tsx +++ b/src/components/left/settings/SettingsExperimental.tsx @@ -120,14 +120,6 @@ const SettingsExperimental: FC = ({ onCheck={() => setSettingOption({ shouldDebugExportedSenders: !shouldDebugExportedSenders })} /> - {IS_ELECTRON && ( - - )} - { - fetch(`${APP_VERSION_URL}?${Date.now()}`) - .then((response) => response.text()) - .then((version) => { - version = version.trim(); - - if (getIsAppUpdateNeeded(version, APP_VERSION)) { - global = getGlobal(); - global = { - ...global, - isAppUpdateAvailable: true, - }; - setGlobal(global); - } - }) - .catch((err) => { - if (DEBUG) { - // eslint-disable-next-line no-console - console.error('[checkAppVersion failed] ', err); - } - }); }); addActionHandler('setIsElectronUpdateAvailable', (global, action, payload): ActionReturnType => { - global = getGlobal(); - global = { - ...global, - isElectronUpdateAvailable: Boolean(payload), - }; - setGlobal(global); }); addActionHandler('afterHangUp', (global): ActionReturnType => { -- 2.43.0