Display tray icon only after window content completely loaded
This commit is contained in:
parent
76964f80a3
commit
75346bdd79
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Reference in a new issue