create tray only for main window, not setup window

This commit is contained in:
zadam 2021-11-20 12:52:23 +01:00
parent 5290aab781
commit 7a383a1314

View File

@ -31,13 +31,13 @@ app.on('ready', async () => {
await sqlInit.dbReady; await sqlInit.dbReady;
await windowService.createMainWindow(); await windowService.createMainWindow();
tray.createTray();
} }
else { else {
await windowService.createSetupWindow(); await windowService.createSetupWindow();
} }
tray.createTray()
await windowService.registerGlobalShortcuts(); await windowService.registerGlobalShortcuts();
}); });