|
@@ -55,6 +55,10 @@ class GlobalController extends GetxController {
|
|
|
|
|
|
Future<void> init(BuildContext context) async {
|
|
|
this.context = context;
|
|
|
+ if(Platform.isMacOS)
|
|
|
+ {
|
|
|
+ await _wlBaseHelpPlugin.killProcess(ClashName.name);
|
|
|
+ }
|
|
|
watchExit();
|
|
|
await controllers.config.initConfig();
|
|
|
await controllers.cc_service.initConfig();
|
|
@@ -62,10 +66,11 @@ class GlobalController extends GetxController {
|
|
|
await SharedPreferencesUtil().delete("last_successful_url");
|
|
|
await controllers.tray.initTray();
|
|
|
controllers.window.initWindow();
|
|
|
- if(Platform.isWindows){
|
|
|
+ if(Platform.isMacOS){
|
|
|
await controllers.cc_service.isCanOperationService();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
Future<bool> checkAllCoresStopped() async {
|