diff --git a/app/lib/app.ts b/app/lib/app.ts index 75a288c8..8a1406bf 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -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`) diff --git a/locale/en-GB.po b/locale/en-GB.po index 1afee621..c7bdaaf3 100644 --- a/locale/en-GB.po +++ b/locale/en-GB.po @@ -2037,7 +2037,7 @@ msgid "Show Serial connections" msgstr "" #: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:73 -msgid "Show Tabby in tray or menu bar." +msgid "Hide Tabby in tray or menu bar." msgstr "" #: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:152 @@ -2049,7 +2049,7 @@ msgid "Show toolbar" msgstr "" #: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:73 -msgid "Show tray" +msgid "Hide tray" msgstr "" #: locale/tmp-html/tabby-settings/src/components/vaultSettingsTab.component.html:45 diff --git a/tabby-core/src/configDefaults.yaml b/tabby-core/src/configDefaults.yaml index 9b6244db..096fa942 100644 --- a/tabby-core/src/configDefaults.yaml +++ b/tabby-core/src/configDefaults.yaml @@ -43,7 +43,7 @@ enableWelcomeTab: true electronFlags: - ['force_discrete_gpu', '0'] enableAutomaticUpdates: true -showTray: true +hideTray: false version: 1 vault: null encrypted: false diff --git a/tabby-settings/src/components/windowSettingsTab.component.pug b/tabby-settings/src/components/windowSettingsTab.component.pug index f3177bba..6ab08ca7 100644 --- a/tabby-settings/src/components/windowSettingsTab.component.pug +++ b/tabby-settings/src/components/windowSettingsTab.component.pug @@ -123,10 +123,10 @@ h3.mb-3(translate) Window .form-line(*ngIf='hostApp.platform !== Platform.Web && hostApp.platform !== Platform.Linux') .header - .title(translate) Show tray - .description(translate) Show Tabby in tray or menu bar. + .title(translate) Hide tray + .description(translate) Hide Tabby in tray or menu bar. toggle( - [(ngModel)]='config.store.showTray', + [(ngModel)]='config.store.hideTray', (ngModelChange)='saveConfiguration(true)' )