Electron: Hide experimental autoupdates setting for browser (#3900)

This commit is contained in:
Alexander Zinchuk 2023-09-30 01:56:30 +02:00
parent b7d4177f94
commit 8a35957b79

View File

@ -7,6 +7,7 @@ import { getActions, withGlobal } from '../../../global';
import { DEBUG_LOG_FILENAME } from '../../../config'; import { DEBUG_LOG_FILENAME } from '../../../config';
import { getDebugLogs } from '../../../util/debugConsole'; import { getDebugLogs } from '../../../util/debugConsole';
import download from '../../../util/download'; import download from '../../../util/download';
import { IS_ELECTRON } from '../../../util/windowEnvironment';
import { LOCAL_TGS_URLS } from '../../common/helpers/animatedAssets'; import { LOCAL_TGS_URLS } from '../../common/helpers/animatedAssets';
import useHistoryBack from '../../../hooks/useHistoryBack'; import useHistoryBack from '../../../hooks/useHistoryBack';
@ -119,11 +120,13 @@ const SettingsExperimental: FC<OwnProps & StateProps> = ({
onCheck={() => setSettingOption({ shouldDebugExportedSenders: !shouldDebugExportedSenders })} onCheck={() => setSettingOption({ shouldDebugExportedSenders: !shouldDebugExportedSenders })}
/> />
<Checkbox {IS_ELECTRON && (
label="Enable autoupdates" <Checkbox
checked={Boolean(isAutoUpdateEnabled)} label="Enable autoupdates"
onCheck={handleIsAutoUpdateEnabledChange} checked={Boolean(isAutoUpdateEnabled)}
/> onCheck={handleIsAutoUpdateEnabledChange}
/>
)}
<ListItem <ListItem
// eslint-disable-next-line react/jsx-no-bind // eslint-disable-next-line react/jsx-no-bind