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:
Mihai 2026-02-17 21:21:43 +01:00
commit 4f2fde790a
1 changed files with 4 additions and 0 deletions

View File

@ -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) {