Skip to content

Commit

Permalink
Merge pull request #1350 from hovancik/feature/tray-clicks
Browse files Browse the repository at this point in the history
Adds more tray actions
  • Loading branch information
hovancik authored Jul 22, 2023
2 parents 9757604 + eb548e9 commit 4670b40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- both left and right click on tray opens menu (Windows)
- double click on tray opens Preferences (Windows)

## [1.14.1] - 2023-06-04
## Added
### Added
- advanced option to not show menubar (tray) icon

### Fixed
Expand Down
8 changes: 8 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,14 @@ function updateTray () {
appIcon.setContextMenu(trayMenu)
currentTrayMenuTemplate = newTrayMenuTemplate
}

appIcon.on('double-click', () => {
createPreferencesWindow()
})

appIcon.on('click', () => {
appIcon.popUpContextMenu(Menu.buildFromTemplate(currentTrayMenuTemplate))
})
}
}

Expand Down

0 comments on commit 4670b40

Please sign in to comment.