From 73ccfc44a40ba270c9575a75f2108b69554aedd4 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Fri, 7 Jun 2024 07:46:03 -0400 Subject: [PATCH] feat: launch minimized (#1193) --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 409f01cbc..d0d76f0a2 100644 --- a/main.js +++ b/main.js @@ -43,6 +43,9 @@ const mb = menubar({ mb.on('ready', () => { mb.app.setAppUserModelId('com.electron.gitify'); mb.tray.setIgnoreDoubleClickEvents(true); + + mb.hideWindow(); + // Force the window to retrieve its previous zoom factor mb.window.webContents.setZoomFactor(mb.window.webContents.getZoomFactor());