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)
.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(

View File

@@ -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),