change from 'show tray' to 'hide tray'

This commit is contained in:
Charles Buffington
2024-06-18 17:05:19 -04:00
parent 439a7a8d44
commit 8a49c738b4
4 changed files with 8 additions and 7 deletions

View File

@@ -183,9 +183,10 @@ export class Application {
}
enableTray (): void {
if (!!this.tray || process.platform === 'linux' || this.configStore.showTray === false) {
if (!!this.tray || process.platform === 'linux' || (this.configStore.hideTray ?? false) === true) {
return
}
if (process.platform === 'darwin') {
this.tray = new Tray(`${app.getAppPath()}/assets/tray-darwinTemplate.png`)
this.tray.setPressedImage(`${app.getAppPath()}/assets/tray-darwinHighlightTemplate.png`)