Skip to content

Commit

Permalink
chore: Hide dock icon on MacOS and Windows
Browse files Browse the repository at this point in the history
Closes: #39
  • Loading branch information
diego3g committed Jun 28, 2021
1 parent d2977f6 commit f9dbb93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ if (isLinux) {
app.disableHardwareAcceleration()
}

if (isMac) {
app.dock.hide()
}

let win: BrowserWindow
let isLinuxWindowReadyToShow: boolean
let mainTray: Tray
Expand Down Expand Up @@ -240,6 +244,7 @@ async function createWindow() {
maxWidth: 300,
maxHeight: 300,
frame: false,
skipTaskbar: true,
titleBarStyle: 'customButtonsOnHover',
transparent: true,
alwaysOnTop: true,
Expand Down

0 comments on commit f9dbb93

Please sign in to comment.