From 8e3ee3190a11d61e16143e918984e75102195b03 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 28 May 2023 10:41:08 +0530 Subject: Disable in-app auto-updates for portable windows installation (fixes #1088) (#1200) --- src/components/AppUpdateInfoBar.tsx | 5 ++++- src/components/settings/settings/EditSettingsForm.tsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/components') diff --git a/src/components/AppUpdateInfoBar.tsx b/src/components/AppUpdateInfoBar.tsx index ff4a9b9ad..b27578d10 100644 --- a/src/components/AppUpdateInfoBar.tsx +++ b/src/components/AppUpdateInfoBar.tsx @@ -6,6 +6,7 @@ import InfoBar from './ui/InfoBar'; import Icon from './ui/icon'; import { onAuthGoToReleaseNotes } from '../helpers/update-helpers'; +import { isWinPortable } from '../environment'; const messages = defineMessages({ updateAvailable: { @@ -36,7 +37,9 @@ const AppUpdateInfoBar = (props: IProps) => { { + !isWinPortable && onInstallUpdate(event); + }} onHide={onHide} > diff --git a/src/components/settings/settings/EditSettingsForm.tsx b/src/components/settings/settings/EditSettingsForm.tsx index 39c25f529..6ece340ba 100644 --- a/src/components/settings/settings/EditSettingsForm.tsx +++ b/src/components/settings/settings/EditSettingsForm.tsx @@ -28,7 +28,7 @@ import { SPLIT_COLUMNS_MAX, SPLIT_COLUMNS_MIN, } from '../../../config'; -import { isMac, isWindows, lockFerdiumShortcutKey } from '../../../environment'; +import { isMac, isWinPortable, isWindows, lockFerdiumShortcutKey } from '../../../environment'; import { openExternalUrl, openPath } from '../../../helpers/url-helpers'; import globalMessages from '../../../i18n/globalMessages'; import Icon from '../../ui/icon'; @@ -1040,7 +1040,7 @@ class EditSettingsForm extends Component { - {automaticUpdates && ( + {automaticUpdates && !isWinPortable && ( <> <>
-- cgit v1.2.3-70-g09d2