new: add use xray core option
This commit is contained in:
@@ -138,6 +138,7 @@ class ConfigOptionsPage extends HookConsumerWidget {
|
||||
title: t.config.logLevel,
|
||||
presentChoice: (value) => value.name.toUpperCase(),
|
||||
),
|
||||
|
||||
const SettingsDivider(),
|
||||
SettingsSection(t.config.section.route),
|
||||
ChoicePreferenceWidget(
|
||||
@@ -358,6 +359,12 @@ class ConfigOptionsPage extends HookConsumerWidget {
|
||||
inputToValue: int.tryParse,
|
||||
),
|
||||
const Gap(24),
|
||||
SwitchListTile(
|
||||
title: Text(experimental(t.config.useXrayCoreWhenPossible.Label)),
|
||||
subtitle: Text(t.config.useXrayCoreWhenPossible.Description),
|
||||
value: ref.watch(ConfigOptions.useXrayCoreWhenPossible),
|
||||
onChanged: ref.watch(ConfigOptions.useXrayCoreWhenPossible.notifier).update,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user