Fix ipv6 error

(cherry picked from commit 86572cc960)
This commit is contained in:
chen08209
2024-06-12 19:07:54 +08:00
parent fd7c3be02f
commit 03c39bf4bf
3 changed files with 150 additions and 152 deletions

View File

@@ -82,9 +82,7 @@ class _ConfigFragmentState extends State<ConfigFragment> {
onChanged: (bool value) async {
final appController = globalState.appController;
appController.clashConfig.ipv6 = value;
await appController.updateClashConfig(
isPatch: false,
);
appController.updateClashConfigDebounce();
},
),
);

View File

@@ -190,7 +190,7 @@ class ClashConfig extends ChangeNotifier {
set ipv6(bool value) {
if (_ipv6 != value) {
ipv6 = value;
_ipv6 = value;
notifyListeners();
}
}

File diff suppressed because it is too large Load Diff