Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
Windows icon fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
anatolinicolae committed May 27, 2017
1 parent eaf3768 commit ce7ff21
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/src/main/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,15 @@ exports.createTray = win => {
let iconName = null
// Set tray icon
if (isPlatform('windows')) {
iconName = 'icon.icon'
iconName = 'icon.ico'
} else {
iconName = 'icon-18x18.png'
}

const iconPath = path.join(__dirname, '../assets/' + iconName)
const toggleWin = () => {
if (isPlatform('windows')) {
if (win.isMinimized()) {
win.restore()
} else if (win.isVisible()) {
win.hide()
} else {
win.show()
}
win.isMinimized() ? win.restore() : win.isVisible() ? win.hide() : win.show()
} else {
win.isVisible() ? win.hide() : win.show()
}
Expand Down

0 comments on commit ce7ff21

Please sign in to comment.