From f9dbb936f70ac557ae24c8d14ae0395ae8c6462e Mon Sep 17 00:00:00 2001 From: Diego Fernandes Date: Mon, 28 Jun 2021 20:32:51 -0300 Subject: [PATCH] chore: Hide dock icon on MacOS and Windows Closes: #39 --- electron/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electron/main.ts b/electron/main.ts index c658685..23cce3b 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -26,6 +26,10 @@ if (isLinux) { app.disableHardwareAcceleration() } +if (isMac) { + app.dock.hide() +} + let win: BrowserWindow let isLinuxWindowReadyToShow: boolean let mainTray: Tray @@ -240,6 +244,7 @@ async function createWindow() { maxWidth: 300, maxHeight: 300, frame: false, + skipTaskbar: true, titleBarStyle: 'customButtonsOnHover', transparent: true, alwaysOnTop: true,