fix: tray behaviror. App will shutdown gracefully

This commit is contained in:
MasterAcnolo
2026-08-14 22:08:23 +02:00
parent 0a152d4b10
commit 2d71449a10
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;