From 8a35957b79493f894dfa737794c111428e28bf10 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 30 Sep 2023 01:56:30 +0200 Subject: [PATCH] Electron: Hide experimental autoupdates setting for browser (#3900) --- .../left/settings/SettingsExperimental.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/left/settings/SettingsExperimental.tsx b/src/components/left/settings/SettingsExperimental.tsx index 8e78d4d74..c4ee07962 100644 --- a/src/components/left/settings/SettingsExperimental.tsx +++ b/src/components/left/settings/SettingsExperimental.tsx @@ -7,6 +7,7 @@ import { getActions, withGlobal } from '../../../global'; import { DEBUG_LOG_FILENAME } from '../../../config'; import { getDebugLogs } from '../../../util/debugConsole'; import download from '../../../util/download'; +import { IS_ELECTRON } from '../../../util/windowEnvironment'; import { LOCAL_TGS_URLS } from '../../common/helpers/animatedAssets'; import useHistoryBack from '../../../hooks/useHistoryBack'; @@ -119,11 +120,13 @@ const SettingsExperimental: FC = ({ onCheck={() => setSettingOption({ shouldDebugExportedSenders: !shouldDebugExportedSenders })} /> - + {IS_ELECTRON && ( + + )}