diff --git a/ts/components/Preferences.stories.tsx b/ts/components/Preferences.stories.tsx index 43d41b1b66f5..2282e40dc097 100644 --- a/ts/components/Preferences.stories.tsx +++ b/ts/components/Preferences.stories.tsx @@ -118,6 +118,7 @@ const createProps = (): PropsType => ({ ), isAudioNotificationsSupported: true, + isAutoDownloadUpdatesSupported: true, isAutoLaunchSupported: true, isHideMenuBarSupported: true, isNotificationAttentionSupported: true, diff --git a/ts/components/Preferences.tsx b/ts/components/Preferences.tsx index 04c643ccf30a..629a1919502e 100644 --- a/ts/components/Preferences.tsx +++ b/ts/components/Preferences.tsx @@ -96,6 +96,7 @@ export type PropsType = { // Limited support features isAudioNotificationsSupported: boolean; + isAutoDownloadUpdatesSupported: boolean; isAutoLaunchSupported: boolean; isHideMenuBarSupported: boolean; isNotificationAttentionSupported: boolean; @@ -184,6 +185,7 @@ export const Preferences = ({ i18n, initialSpellCheckSetting, isAudioNotificationsSupported, + isAutoDownloadUpdatesSupported, isAutoLaunchSupported, isHideMenuBarSupported, isPhoneNumberSharingSupported, @@ -344,15 +346,17 @@ export const Preferences = ({ onChange={onMediaCameraPermissionsChange} /> - - - + {isAutoDownloadUpdatesSupported && ( + + + + )} ); } else if (page === Page.Appearance) { diff --git a/ts/types/Settings.ts b/ts/types/Settings.ts index 8cbb710421f9..44e1d0006245 100644 --- a/ts/types/Settings.ts +++ b/ts/types/Settings.ts @@ -58,3 +58,6 @@ export const getTitleBarVisibility = (): TitleBarVisibility => export const isSystemTraySupported = (appVersion: string): boolean => // We eventually want to support Linux in production. OS.isWindows() || (OS.isLinux() && !isProduction(appVersion)); + +export const isAutoDownloadUpdatesSupported = (): boolean => + OS.isWindows() || OS.isMacOS(); diff --git a/ts/windows/settings/preload.ts b/ts/windows/settings/preload.ts index 057e0eeb8357..4b5fde21b39a 100644 --- a/ts/windows/settings/preload.ts +++ b/ts/windows/settings/preload.ts @@ -305,6 +305,7 @@ async function renderPreferences() { // Limited support features isAudioNotificationsSupported: Settings.isAudioNotificationSupported(), + isAutoDownloadUpdatesSupported: Settings.isAutoDownloadUpdatesSupported(), isAutoLaunchSupported: Settings.isAutoLaunchSupported(), isHideMenuBarSupported: Settings.isHideMenuBarSupported(), isNotificationAttentionSupported: Settings.isDrawAttentionSupported(),