alroyso 1 year ago
parent
commit
7915143ede

+ 5 - 4
lib/app/modules/home/controllers/home_controller.dart

@@ -211,10 +211,11 @@ class HomeController extends GetxController {
   Future<void> fetchAuthUser() async {
     try {
 
-      // if (!controllers.service.isRunning){
-      //   controllers.global.updateMsg("内核没有启动...");
-      //   return;
-      // }
+      if (!controllers.service.coreIsRuning){
+        controllers.global.updateMsg("内核没有启动...");
+        return;
+      }
+
       if(controllers.global.routeModesSelect.value == "tun")
       {
         if(Platform.isWindows)

+ 1 - 1
lib/app/modules/home/views/home_view.dart

@@ -136,7 +136,7 @@ class HomeView extends GetView<HomeController> {
                ConnectionWidget(
                   status: controller.connectStatus.value, onTap: () {
 
-                    if(controllers.service.coreIsRuning == true){
+                    if(controllers.service.coreIsRuning == false){
                       return;
                     }