Remove unnecessary config options
This commit is contained in:
@@ -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()),
|
||||||
|
|||||||
Reference in New Issue
Block a user