alroyso 4 months ago
parent
commit
4995a34f66
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/app/controller/tray.dart

+ 3 - 0
lib/app/controller/tray.dart

@@ -39,6 +39,9 @@ class TrayController extends GetxController with TrayListener {
       disabledTun.value == false;
     } else {
       disabledTun.value = tun == "true" ? true : false;
+      if(tun == "true" ){
+        await controllers.global.TunProxySwitch(disabledTun.value);
+      }
     }