Skip to content

Commit

Permalink
Merge pull request #50 from amar-b/master
Browse files Browse the repository at this point in the history
hide main window by clicking system trey
  • Loading branch information
Splode authored Sep 1, 2019
2 parents 2265df4 + c6b0d96 commit 77c141a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function createTray() {
tray.setToolTip('Pomotroid\nClick to Restore')
tray.setContextMenu(Menu.buildFromTemplate([{ role: 'quit' }]))
tray.on('click', () => {
mainWindow.show()
mainWindow.isVisible() ? mainWindow.hide() : mainWindow.show()
})
tray.on('right-click', () => {
tray.popUpContextMenu()
Expand Down

0 comments on commit 77c141a

Please sign in to comment.