From c0fce83332a17f0e087cc86c969bb3629c4b56bd Mon Sep 17 00:00:00 2001 From: Hiddify Date: Sun, 17 Mar 2024 14:44:57 +0100 Subject: [PATCH] remove mux --- .../overview/config_options_page.dart | 46 +++++++++---------- .../widget/quick_settings_modal.dart | 10 ++-- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/features/config_option/overview/config_options_page.dart b/lib/features/config_option/overview/config_options_page.dart index ff2e4104..c03ea937 100644 --- a/lib/features/config_option/overview/config_options_page.dart +++ b/lib/features/config_option/overview/config_options_page.dart @@ -212,29 +212,29 @@ class ConfigOptionsPage extends HookConsumerWidget { .watch(ConfigOptions.enableDnsRouting.notifier) .update, ), - const SettingsDivider(), - SettingsSection(experimental(t.config.section.mux)), - SwitchListTile( - title: Text(t.config.enableMux), - value: ref.watch(ConfigOptions.enableMux), - onChanged: - ref.watch(ConfigOptions.enableMux.notifier).update, - ), - ChoicePreferenceWidget( - selected: ref.watch(ConfigOptions.muxProtocol), - preferences: ref.watch(ConfigOptions.muxProtocol.notifier), - choices: MuxProtocol.values, - title: t.config.muxProtocol, - presentChoice: (value) => value.name, - ), - ValuePreferenceWidget( - value: ref.watch(ConfigOptions.muxMaxStreams), - preferences: - ref.watch(ConfigOptions.muxMaxStreams.notifier), - title: t.config.muxMaxStreams, - inputToValue: int.tryParse, - digitsOnly: true, - ), + // const SettingsDivider(), + // SettingsSection(experimental(t.config.section.mux)), + // SwitchListTile( + // title: Text(t.config.enableMux), + // value: ref.watch(ConfigOptions.enableMux), + // onChanged: + // ref.watch(ConfigOptions.enableMux.notifier).update, + // ), + // ChoicePreferenceWidget( + // selected: ref.watch(ConfigOptions.muxProtocol), + // preferences: ref.watch(ConfigOptions.muxProtocol.notifier), + // choices: MuxProtocol.values, + // title: t.config.muxProtocol, + // presentChoice: (value) => value.name, + // ), + // ValuePreferenceWidget( + // value: ref.watch(ConfigOptions.muxMaxStreams), + // preferences: + // ref.watch(ConfigOptions.muxMaxStreams.notifier), + // title: t.config.muxMaxStreams, + // inputToValue: int.tryParse, + // digitsOnly: true, + // ), const SettingsDivider(), SettingsSection(t.config.section.inbound), ChoicePreferenceWidget( diff --git a/lib/features/config_option/widget/quick_settings_modal.dart b/lib/features/config_option/widget/quick_settings_modal.dart index 2ed83d1c..e5acea73 100644 --- a/lib/features/config_option/widget/quick_settings_modal.dart +++ b/lib/features/config_option/widget/quick_settings_modal.dart @@ -65,11 +65,11 @@ class QuickSettingsModal extends HookConsumerWidget { ref.watch(ConfigOptions.enableTlsFragment.notifier).update, title: Text(t.config.enableTlsFragment), ), - SwitchListTile( - value: ref.watch(ConfigOptions.enableMux), - onChanged: ref.watch(ConfigOptions.enableMux.notifier).update, - title: Text(t.config.enableMux), - ), + // SwitchListTile( + // value: ref.watch(ConfigOptions.enableMux), + // onChanged: ref.watch(ConfigOptions.enableMux.notifier).update, + // title: Text(t.config.enableMux), + // ), ListTile( title: Text(t.config.allOptions), trailing: const Icon(FluentIcons.chevron_right_24_regular),