Merge branch 'feat/minimise-to-tray-startup' of https://github.com/mihaicm93/for-desktop into feat/minimise-to-tray-startup
This commit is contained in:
commit
4f2fde790a
|
|
@ -86,6 +86,10 @@ export function createMainWindow() {
|
|||
// load the entrypoint
|
||||
mainWindow.loadURL(BUILD_URL.toString());
|
||||
|
||||
if (startHidden) {
|
||||
mainWindow.hide();
|
||||
}
|
||||
|
||||
// minimise window to tray
|
||||
mainWindow.on("close", (event) => {
|
||||
if (!shouldQuit && config.minimiseToTray) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue