Optimize proxies page

Fix ua issues

Optimize more details
This commit is contained in:
chen08209
2024-07-24 01:27:49 +08:00
parent c36df8cb4a
commit 6de89d7de4
44 changed files with 1575 additions and 636 deletions

View File

@@ -275,7 +275,7 @@ class ClashConfig extends ChangeNotifier {
}
}
@JsonKey(name: "global-ua", defaultValue: null)
@JsonKey(name: "global-ua", includeFromJson: false, includeToJson: true)
String get globalUa {
if (_globalRealUa == null) {
return globalState.packageInfo.ua;
@@ -320,7 +320,6 @@ class ClashConfig extends ChangeNotifier {
_geodataLoader = clashConfig._geodataLoader;
_dns = clashConfig._dns;
_rules = clashConfig._rules;
_globalRealUa = clashConfig.globalRealUa;
}
notifyListeners();
}