alroyso 3 maanden geleden
bovenliggende
commit
782b096cb0
2 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 1 1
      lib/app/clash/service/clash_service.dart
  2. 3 2
      lib/app/controller/GlobalController.dart

+ 1 - 1
lib/app/clash/service/clash_service.dart

@@ -147,7 +147,7 @@ class ClashService extends GetxController {
       
       await controllers.core.updateConfig();
       coreStatus.value = RunningState.running;
-      controllers.global.updateMsg("重新加载内核成功,点击连接 ");
+      controllers.global.updateMsg("点击连接 ");
       return true;
     } catch (e) {
       controllers.global.updateMsg("启动内核错误");

+ 3 - 2
lib/app/controller/GlobalController.dart

@@ -231,11 +231,12 @@ class GlobalController extends GetxController {
         await controllers.config.initConfig();
       }
       nodeModes.value = await ApiService().getNode("/api/client/v4/nodes?vless=1");
+
+
       if (!await checkAllCoresStopped()) {
         throw Exception("内核未启动");
       }
-      await makeProxy();
-      await controllers.cc_service.reloadClashCore();
+
     } catch (e) {
       handleApiError(e);
     }