Disables auto-download updates on Linux
This commit is contained in:
parent
0e2885a5a6
commit
353fea5d66
4 changed files with 18 additions and 9 deletions
|
@ -118,6 +118,7 @@ const createProps = (): PropsType => ({
|
||||||
),
|
),
|
||||||
|
|
||||||
isAudioNotificationsSupported: true,
|
isAudioNotificationsSupported: true,
|
||||||
|
isAutoDownloadUpdatesSupported: true,
|
||||||
isAutoLaunchSupported: true,
|
isAutoLaunchSupported: true,
|
||||||
isHideMenuBarSupported: true,
|
isHideMenuBarSupported: true,
|
||||||
isNotificationAttentionSupported: true,
|
isNotificationAttentionSupported: true,
|
||||||
|
|
|
@ -96,6 +96,7 @@ export type PropsType = {
|
||||||
|
|
||||||
// Limited support features
|
// Limited support features
|
||||||
isAudioNotificationsSupported: boolean;
|
isAudioNotificationsSupported: boolean;
|
||||||
|
isAutoDownloadUpdatesSupported: boolean;
|
||||||
isAutoLaunchSupported: boolean;
|
isAutoLaunchSupported: boolean;
|
||||||
isHideMenuBarSupported: boolean;
|
isHideMenuBarSupported: boolean;
|
||||||
isNotificationAttentionSupported: boolean;
|
isNotificationAttentionSupported: boolean;
|
||||||
|
@ -184,6 +185,7 @@ export const Preferences = ({
|
||||||
i18n,
|
i18n,
|
||||||
initialSpellCheckSetting,
|
initialSpellCheckSetting,
|
||||||
isAudioNotificationsSupported,
|
isAudioNotificationsSupported,
|
||||||
|
isAutoDownloadUpdatesSupported,
|
||||||
isAutoLaunchSupported,
|
isAutoLaunchSupported,
|
||||||
isHideMenuBarSupported,
|
isHideMenuBarSupported,
|
||||||
isPhoneNumberSharingSupported,
|
isPhoneNumberSharingSupported,
|
||||||
|
@ -344,15 +346,17 @@ export const Preferences = ({
|
||||||
onChange={onMediaCameraPermissionsChange}
|
onChange={onMediaCameraPermissionsChange}
|
||||||
/>
|
/>
|
||||||
</SettingsRow>
|
</SettingsRow>
|
||||||
<SettingsRow title={i18n('Preferences--updates')}>
|
{isAutoDownloadUpdatesSupported && (
|
||||||
<Checkbox
|
<SettingsRow title={i18n('Preferences--updates')}>
|
||||||
checked={hasAutoDownloadUpdate}
|
<Checkbox
|
||||||
label={i18n('Preferences__download-update')}
|
checked={hasAutoDownloadUpdate}
|
||||||
moduleClassName="Preferences__checkbox"
|
label={i18n('Preferences__download-update')}
|
||||||
name="autoDownloadUpdate"
|
moduleClassName="Preferences__checkbox"
|
||||||
onChange={onAutoDownloadUpdateChange}
|
name="autoDownloadUpdate"
|
||||||
/>
|
onChange={onAutoDownloadUpdateChange}
|
||||||
</SettingsRow>
|
/>
|
||||||
|
</SettingsRow>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
} else if (page === Page.Appearance) {
|
} else if (page === Page.Appearance) {
|
||||||
|
|
|
@ -58,3 +58,6 @@ export const getTitleBarVisibility = (): TitleBarVisibility =>
|
||||||
export const isSystemTraySupported = (appVersion: string): boolean =>
|
export const isSystemTraySupported = (appVersion: string): boolean =>
|
||||||
// We eventually want to support Linux in production.
|
// We eventually want to support Linux in production.
|
||||||
OS.isWindows() || (OS.isLinux() && !isProduction(appVersion));
|
OS.isWindows() || (OS.isLinux() && !isProduction(appVersion));
|
||||||
|
|
||||||
|
export const isAutoDownloadUpdatesSupported = (): boolean =>
|
||||||
|
OS.isWindows() || OS.isMacOS();
|
||||||
|
|
|
@ -305,6 +305,7 @@ async function renderPreferences() {
|
||||||
|
|
||||||
// Limited support features
|
// Limited support features
|
||||||
isAudioNotificationsSupported: Settings.isAudioNotificationSupported(),
|
isAudioNotificationsSupported: Settings.isAudioNotificationSupported(),
|
||||||
|
isAutoDownloadUpdatesSupported: Settings.isAutoDownloadUpdatesSupported(),
|
||||||
isAutoLaunchSupported: Settings.isAutoLaunchSupported(),
|
isAutoLaunchSupported: Settings.isAutoLaunchSupported(),
|
||||||
isHideMenuBarSupported: Settings.isHideMenuBarSupported(),
|
isHideMenuBarSupported: Settings.isHideMenuBarSupported(),
|
||||||
isNotificationAttentionSupported: Settings.isDrawAttentionSupported(),
|
isNotificationAttentionSupported: Settings.isDrawAttentionSupported(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue