Skip to content
Snippets Groups Projects
Commit 41c46f7d authored by shipinbaoku's avatar shipinbaoku
Browse files

fix open config dir error

& other issues 1.0.3
parent 2ccc1c56
No related branches found
No related tags found
No related merge requests found
assets/images/rocket.png

11.3 KiB | W: | H:

assets/images/rocket.png

8.05 KiB | W: | H:

assets/images/rocket.png
assets/images/rocket.png
assets/images/rocket.png
assets/images/rocket.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/rocket_connected.ico

135 KiB

assets/images/rocket_connected.png

1.22 KiB

...@@ -45,6 +45,7 @@ class ClashService extends GetxService with TrayListener { ...@@ -45,6 +45,7 @@ class ClashService extends GetxService with TrayListener {
// final currentYaml = isDesktop?'config.yaml'.obs:"".obs; // final currentYaml = isDesktop?'config.yaml'.obs:"".obs;
final currentYaml = 'config.yaml'.obs; final currentYaml = 'config.yaml'.obs;
// final currentYaml = ''.obs; // final currentYaml = ''.obs;
final proxyStatus = RxMap<String, int>(); final proxyStatus = RxMap<String, int>();
...@@ -545,7 +546,7 @@ class ClashService extends GetxService with TrayListener { ...@@ -545,7 +546,7 @@ class ClashService extends GetxService with TrayListener {
} else {} } else {}
} }
void updateTray() { Future<void> updateTray() async {
if (!isDesktop) { if (!isDesktop) {
return; return;
} }
...@@ -598,6 +599,11 @@ class ClashService extends GetxService with TrayListener { ...@@ -598,6 +599,11 @@ class ClashService extends GetxService with TrayListener {
stringList.add(MenuItem.separator()); stringList.add(MenuItem.separator());
} }
initAppTray(details: stringList, isUpdate: true); initAppTray(details: stringList, isUpdate: true);
if (SpUtil.getData("system_proxy", defValue: false)) {
await trayManager.setIcon(Platform.isWindows
? 'assets/images/rocket_connected.ico'
: 'assets/images/rocket_connected.png');
}
} }
@override @override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment