alroyso 1 year ago
parent
commit
32f14c39ab
2 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/app/controller/core.dart
  2. 2 2
      lib/app/controller/tray.dart

+ 1 - 1
lib/app/controller/core.dart

@@ -93,7 +93,7 @@ class CoreController extends GetxController {
         await dio.put('/configs', data: {"path": configPath});
       }
       catch (e) {
-        await dio.put('/configs', data: {"path": configPath});
+       continue;
       }
     }
   }

+ 2 - 2
lib/app/controller/tray.dart

@@ -122,10 +122,10 @@ class TrayController extends GetxController with TrayListener {
     isSHow = true;
     if (menuItem.checked == true) {
       isShowConsole.value = true;
-      controllers.global.showConsole();
+      controllers.global.hideConsole();
     } else {
       isShowConsole.value = false;
-      controllers.global.hideConsole();
+      controllers.global.showConsole();
     }
   }
   Future<void> handleClickShow(MenuItem menuItem) async {