diff --git a/lib/fragments/config.dart b/lib/fragments/config.dart index 00bd24df..d1976fe0 100644 --- a/lib/fragments/config.dart +++ b/lib/fragments/config.dart @@ -86,25 +86,25 @@ class _ConfigFragmentState extends State { ); }, ), - if (system.isDesktop) - Selector( - selector: (_, clashConfig) => clashConfig.tun.enable, - builder: (_, tunEnable, __) { - return ListItem.switchItem( - leading: const Icon(Icons.support), - title: Text(appLocalizations.tun), - subtitle: Text(appLocalizations.tunDesc), - delegate: SwitchDelegate( - value: tunEnable, - onChanged: (bool value) async { - final clashConfig = context.read(); - clashConfig.tun = Tun(enable: value); - globalState.appController.updateClashConfigDebounce(); - }, - ), - ); - }, - ), + // if (system.isDesktop) + // Selector( + // selector: (_, clashConfig) => clashConfig.tun.enable, + // builder: (_, tunEnable, __) { + // return ListItem.switchItem( + // leading: const Icon(Icons.support), + // title: Text(appLocalizations.tun), + // subtitle: Text(appLocalizations.tunDesc), + // delegate: SwitchDelegate( + // value: tunEnable, + // onChanged: (bool value) async { + // final clashConfig = context.read(); + // clashConfig.tun = Tun(enable: value); + // globalState.appController.updateClashConfigDebounce(); + // }, + // ), + // ); + // }, + // ), Selector( selector: (_, config) => config.isCompatible, builder: (_, isCompatible, __) {