Display tray icon only after window content completely loaded

This commit is contained in:
GHOSCHT 2020-08-07 19:27:57 +02:00
parent 76964f80a3
commit 75346bdd79

View file

@ -72,6 +72,7 @@ if (!gotTheLock) {
}
});
mainWindow.webContents.on('did-frame-finish-load', () => {
//Create tray icon with context menu
trayIcon = createTray();
@ -80,6 +81,7 @@ if (!gotTheLock) {
mainWindow.show();
});
});
});
}
//Tray creation