diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-05-28 10:41:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 05:11:08 +0000 |
commit | 8e3ee3190a11d61e16143e918984e75102195b03 (patch) | |
tree | f76e998ba1e2137c3d5153308ec6ebc5fa426567 /src/components/AppUpdateInfoBar.tsx | |
parent | 6.3.0-nightly.12 [skip ci] (diff) | |
download | ferdium-app-8e3ee3190a11d61e16143e918984e75102195b03.tar.gz ferdium-app-8e3ee3190a11d61e16143e918984e75102195b03.tar.zst ferdium-app-8e3ee3190a11d61e16143e918984e75102195b03.zip |
Diffstat (limited to 'src/components/AppUpdateInfoBar.tsx')
-rw-r--r-- | src/components/AppUpdateInfoBar.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
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'; | |||
6 | import Icon from './ui/icon'; | 6 | import Icon from './ui/icon'; |
7 | 7 | ||
8 | import { onAuthGoToReleaseNotes } from '../helpers/update-helpers'; | 8 | import { onAuthGoToReleaseNotes } from '../helpers/update-helpers'; |
9 | import { isWinPortable } from '../environment'; | ||
9 | 10 | ||
10 | const messages = defineMessages({ | 11 | const messages = defineMessages({ |
11 | updateAvailable: { | 12 | updateAvailable: { |
@@ -36,7 +37,9 @@ const AppUpdateInfoBar = (props: IProps) => { | |||
36 | <InfoBar | 37 | <InfoBar |
37 | type="primary" | 38 | type="primary" |
38 | ctaLabel={intl.formatMessage(messages.buttonInstallUpdate)} | 39 | ctaLabel={intl.formatMessage(messages.buttonInstallUpdate)} |
39 | onClick={onInstallUpdate} | 40 | onClick={event => { |
41 | !isWinPortable && onInstallUpdate(event); | ||
42 | }} | ||
40 | onHide={onHide} | 43 | onHide={onHide} |
41 | > | 44 | > |
42 | <Icon icon={mdiInformation} /> | 45 | <Icon icon={mdiInformation} /> |