1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-11 13:13:59 +03:00

add setting to hide tray (menubar for macos)

This commit is contained in:
Charles Buffington 2024-05-07 12:13:19 -04:00
parent 860ee3eaa9
commit 9425920f94
4 changed files with 19 additions and 1 deletions

View File

@ -183,7 +183,7 @@ export class Application {
} }
enableTray (): void { enableTray (): void {
if (!!this.tray || process.platform === 'linux') { if (!!this.tray || process.platform === 'linux' || this.configStore.showTray === false) {
return return
} }
if (process.platform === 'darwin') { if (process.platform === 'darwin') {

View File

@ -2036,6 +2036,10 @@ msgstr ""
msgid "Show Serial connections" msgid "Show Serial connections"
msgstr "" msgstr ""
#: locale/tmp-html/tabby-settings/src/components/settingsTab.component.html:73
msgid "Show Tabby in tray or menu bar."
msgstr ""
#: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:152 #: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:152
msgid "Show tabs in fullscreen mode" msgid "Show tabs in fullscreen mode"
msgstr "" msgstr ""
@ -2044,6 +2048,10 @@ msgstr ""
msgid "Show toolbar" msgid "Show toolbar"
msgstr "" msgstr ""
#: locale/tmp-html/tabby-settings/src/components/settingsTab.component.html:73
msgid "Show tray"
msgstr ""
#: locale/tmp-html/tabby-settings/src/components/vaultSettingsTab.component.html:45 #: locale/tmp-html/tabby-settings/src/components/vaultSettingsTab.component.html:45
msgid "Show vault contents" msgid "Show vault contents"
msgstr "" msgstr ""

View File

@ -43,6 +43,7 @@ enableWelcomeTab: true
electronFlags: electronFlags:
- ['force_discrete_gpu', '0'] - ['force_discrete_gpu', '0']
enableAutomaticUpdates: true enableAutomaticUpdates: true
showTray: true
version: 1 version: 1
vault: null vault: null
encrypted: false encrypted: false

View File

@ -100,6 +100,15 @@
.description(translate) Enable automatic installation of updates when they become available. .description(translate) Enable automatic installation of updates when they become available.
toggle([(ngModel)]='config.store.enableAutomaticUpdates', (ngModelChange)='saveConfiguration()') toggle([(ngModel)]='config.store.enableAutomaticUpdates', (ngModelChange)='saveConfiguration()')
.form-line(*ngIf='hostApp.platform !== Platform.Web')
.header
.title(translate) Show tray
.description(translate) Show Tabby in tray or menu bar.
toggle(
[(ngModel)]='config.store.showTray',
(ngModelChange)='saveConfiguration(true)'
)
.form-line(*ngIf='hostApp.platform !== Platform.Web') .form-line(*ngIf='hostApp.platform !== Platform.Web')
.header .header
.title(translate) Debugging .title(translate) Debugging