remove mux

This commit is contained in:
Hiddify
2024-03-17 14:44:57 +01:00
parent bf1ae540bd
commit c0fce83332
2 changed files with 28 additions and 28 deletions

View File

@@ -212,29 +212,29 @@ class ConfigOptionsPage extends HookConsumerWidget {
.watch(ConfigOptions.enableDnsRouting.notifier) .watch(ConfigOptions.enableDnsRouting.notifier)
.update, .update,
), ),
const SettingsDivider(), // const SettingsDivider(),
SettingsSection(experimental(t.config.section.mux)), // SettingsSection(experimental(t.config.section.mux)),
SwitchListTile( // SwitchListTile(
title: Text(t.config.enableMux), // title: Text(t.config.enableMux),
value: ref.watch(ConfigOptions.enableMux), // value: ref.watch(ConfigOptions.enableMux),
onChanged: // onChanged:
ref.watch(ConfigOptions.enableMux.notifier).update, // ref.watch(ConfigOptions.enableMux.notifier).update,
), // ),
ChoicePreferenceWidget( // ChoicePreferenceWidget(
selected: ref.watch(ConfigOptions.muxProtocol), // selected: ref.watch(ConfigOptions.muxProtocol),
preferences: ref.watch(ConfigOptions.muxProtocol.notifier), // preferences: ref.watch(ConfigOptions.muxProtocol.notifier),
choices: MuxProtocol.values, // choices: MuxProtocol.values,
title: t.config.muxProtocol, // title: t.config.muxProtocol,
presentChoice: (value) => value.name, // presentChoice: (value) => value.name,
), // ),
ValuePreferenceWidget( // ValuePreferenceWidget(
value: ref.watch(ConfigOptions.muxMaxStreams), // value: ref.watch(ConfigOptions.muxMaxStreams),
preferences: // preferences:
ref.watch(ConfigOptions.muxMaxStreams.notifier), // ref.watch(ConfigOptions.muxMaxStreams.notifier),
title: t.config.muxMaxStreams, // title: t.config.muxMaxStreams,
inputToValue: int.tryParse, // inputToValue: int.tryParse,
digitsOnly: true, // digitsOnly: true,
), // ),
const SettingsDivider(), const SettingsDivider(),
SettingsSection(t.config.section.inbound), SettingsSection(t.config.section.inbound),
ChoicePreferenceWidget( ChoicePreferenceWidget(

View File

@@ -65,11 +65,11 @@ class QuickSettingsModal extends HookConsumerWidget {
ref.watch(ConfigOptions.enableTlsFragment.notifier).update, ref.watch(ConfigOptions.enableTlsFragment.notifier).update,
title: Text(t.config.enableTlsFragment), title: Text(t.config.enableTlsFragment),
), ),
SwitchListTile( // SwitchListTile(
value: ref.watch(ConfigOptions.enableMux), // value: ref.watch(ConfigOptions.enableMux),
onChanged: ref.watch(ConfigOptions.enableMux.notifier).update, // onChanged: ref.watch(ConfigOptions.enableMux.notifier).update,
title: Text(t.config.enableMux), // title: Text(t.config.enableMux),
), // ),
ListTile( ListTile(
title: Text(t.config.allOptions), title: Text(t.config.allOptions),
trailing: const Icon(FluentIcons.chevron_right_24_regular), trailing: const Icon(FluentIcons.chevron_right_24_regular),