fix: tray behaviror. App will shutdown gracefully

This commit is contained in:
MasterAcnolo
2026-08-14 22:08:23 +02:00
parent c153db0244
commit 1a1acb53d1
2 changed files with 34 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ async function createMainWindow() {
* cancels the destruction and hides the window instead.
*/
mainWindow.on('close', (event) => {
if (!app.isQuitting) {
if (!app.isQuitting && config.systemTray ) {
event.preventDefault();
mainWindow.hide();
return false;