Skip to content

Commit

Permalink
move setting to experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Oct 16, 2023
1 parent 147d956 commit dc6995c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/dialogs/Settings-Advanced.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function SettingsAdvanced({
<SettingsExperimentalFeatures
settingsStore={settingsStore}
renderDTSettingSwitch={renderDTSettingSwitch}
renderDeltaSwitch2={renderDeltaSwitch2}
/>
</>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useContext } from 'react'
import { Card, Elevation } from '@blueprintjs/core'
import { RenderDTSettingSwitchType, SettingsSelector } from './Settings'
import { RenderDeltaSwitch2Type, RenderDTSettingSwitchType, SettingsSelector } from './Settings'
import { ScreenContext, useTranslationFunction } from '../../contexts'
import { DeltaInput } from '../Login-Styles'
import {
Expand All @@ -22,9 +22,11 @@ const VIDEO_CHAT_INSTANCE_AUTISTICI = 'https://vc.autistici.org/$ROOM'
export function SettingsExperimentalFeatures({
settingsStore,
renderDTSettingSwitch,
renderDeltaSwitch2
}: {
renderDTSettingSwitch: RenderDTSettingSwitchType
settingsStore: SettingsStoreState
renderDeltaSwitch2: RenderDeltaSwitch2Type
}) {
const tx = window.static_translate
const { openDialog } = useContext(ScreenContext)
Expand Down Expand Up @@ -94,6 +96,11 @@ export function SettingsExperimentalFeatures({
description:
'Careful: opening developer tools on a malicious webxdc app could lead to the app getting access to the Internet',
})}
{renderDeltaSwitch2({
label: tx('pref_disable_idle_title'),
key: 'disable_idle',
description: tx('pref_disable_idle_explain'),
})}
<SettingsSelector
onClick={onClickEdit.bind(null, false)}
currentValue={showVideochatInstance(
Expand Down Expand Up @@ -235,4 +242,4 @@ export function EditVideochatInstanceDialog({
<DeltaDialogOkCancelFooter onCancel={onClickCancel} onOk={onClickOk} />
</DeltaDialogBase>
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ export default function SettingsImapFolderHandling({
key: 'only_fetch_mvbox',
description: tx('pref_only_fetch_mvbox_explain'),
})}
{renderDeltaSwitch2({
label: tx('pref_disable_idle_title'),
key: 'disable_idle',
description: tx('pref_disable_idle_explain'),
})}
</>
)
}

0 comments on commit dc6995c

Please sign in to comment.