custom show tray icon

Closes #1569

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-15 19:16:20 +08:00
parent c10c4a6f89
commit 112a06f92a
5 changed files with 21 additions and 5 deletions

View File

@@ -45,8 +45,10 @@ class _MainAppState extends State<MainApp>
windowManager
..addListener(this)
..setPreventClose(true);
trayManager.addListener(this);
_handleTray();
if (_mainController.showTrayIcon) {
trayManager.addListener(this);
_handleTray();
}
}
}
@@ -131,7 +133,7 @@ class _MainAppState extends State<MainApp>
@override
void onWindowClose() {
if (_mainController.minimizeOnExit) {
if (_mainController.showTrayIcon && _mainController.minimizeOnExit) {
windowManager.hide();
_onHideWindow();
} else {