|
@@ -122,6 +122,8 @@ class WindowsCoreApi implements BaseCoreApi {
|
|
|
_handleStateDisconnected();
|
|
_handleStateDisconnected();
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
+ // 更新托盘图标
|
|
|
|
|
+ _updatTrayIcon();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -288,7 +290,7 @@ class WindowsCoreApi implements BaseCoreApi {
|
|
|
final isDark = Get.theme.brightness == Brightness.dark;
|
|
final isDark = Get.theme.brightness == Brightness.dark;
|
|
|
// 更新提示栏
|
|
// 更新提示栏
|
|
|
_windowService.setSystemTrayIcon(
|
|
_windowService.setSystemTrayIcon(
|
|
|
- _vpn.status == ConnectionState.connected,
|
|
|
|
|
|
|
+ _vpn.status == VpnStatus.connected,
|
|
|
isDark,
|
|
isDark,
|
|
|
Configs.appName,
|
|
Configs.appName,
|
|
|
);
|
|
);
|