Skip to content

Commit

Permalink
fixed tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
p32929 committed Jun 7, 2020
1 parent 5ae0547 commit 2b65e3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ function createWindow() {
mainWindow.show()
})

mainWindow.tray = appIcon;

mainWindow.on('close', function (event) {
mainWindow = null
})
Expand All @@ -81,9 +83,9 @@ function createWindow() {
}
})

mainWindow.on('show', function () {
appIcon.setHighlightMode('always')
})
// mainWindow.on('show', function () {
// appIcon.setHighlightMode('always')
// })
}

// This method will be called when Electron has finished
Expand Down

0 comments on commit 2b65e3c

Please sign in to comment.