Remove unnecessary config options

This commit is contained in:
problematicconsumer
2023-09-02 21:12:04 +03:30
parent b06ae63486
commit 9a0728371e

View File

@@ -133,16 +133,18 @@ class ConfigOptionsPage extends HookConsumerWidget {
), ),
const SettingsDivider(), const SettingsDivider(),
SettingsSection(t.settings.config.section.inbound), SettingsSection(t.settings.config.section.inbound),
SwitchListTile( if (PlatformUtils.isDesktop) ...[
title: Text(t.settings.config.enableTun), SwitchListTile(
value: options.enableTun, title: Text(t.settings.config.enableTun),
onChanged: ref.read(enableTunStore.notifier).update, value: options.enableTun,
), onChanged: ref.read(enableTunStore.notifier).update,
SwitchListTile( ),
title: Text(t.settings.config.setSystemProxy), SwitchListTile(
value: options.setSystemProxy, title: Text(t.settings.config.setSystemProxy),
onChanged: ref.read(setSystemProxyStore.notifier).update, value: options.setSystemProxy,
), onChanged: ref.read(setSystemProxyStore.notifier).update,
),
],
ListTile( ListTile(
title: Text(t.settings.config.mixedPort), title: Text(t.settings.config.mixedPort),
subtitle: Text(options.mixedPort.toString()), subtitle: Text(options.mixedPort.toString()),