feat: add show item on system tray (#533)

This commit is contained in:
Levi authored and GitHub committed 2024-05-15 20:41:57 +08:00
1 parent d1a5ed8b3d
commit db6352ada8
4 files changed
+10 -1

No files matched your search

@@ -198,6 +198,13 @@ class AppController extends GetxController with WindowListener, TrayListener {
await trayManager.setIcon('assets/tray_icon/icon.png');
}
final menu = Menu(items: [
MenuItem(
label: "show".tr,
onClick: (menuItem) async => {
await windowManager.show(),
},
),
MenuItem.separator(),
MenuItem(
label: "create".tr,
onClick: (menuItem) async => {
@@ -205,7 +212,6 @@ class AppController extends GetxController with WindowListener, TrayListener {
await Get.rootDelegate.offAndToNamed(Routes.CREATE),
},
),
MenuItem.separator(),
MenuItem(
label: "startAll".tr,
onClick: (menuItem) async => {continueAllTasks()},