Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setting to hide tray (menubar for macos) #9624

Merged
merged 3 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lib/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class Application {
}

enableTray (): void {
if (!!this.tray || process.platform === 'linux') {
if (!!this.tray || process.platform === 'linux' || this.configStore.showTray === false) {
return
}
if (process.platform === 'darwin') {
Expand Down
8 changes: 8 additions & 0 deletions locale/en-GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,10 @@ msgstr ""
msgid "Show Serial connections"
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
msgid "Show tabs in fullscreen mode"
msgstr ""
Expand All @@ -2044,6 +2048,10 @@ msgstr ""
msgid "Show toolbar"
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
msgid "Show vault contents"
msgstr ""
Expand Down
1 change: 1 addition & 0 deletions tabby-core/src/configDefaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enableWelcomeTab: true
electronFlags:
- ['force_discrete_gpu', '0']
enableAutomaticUpdates: true
showTray: true
version: 1
vault: null
encrypted: false
Expand Down
9 changes: 9 additions & 0 deletions tabby-settings/src/components/settingsTab.component.pug
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@
.description(translate) Enable automatic installation of updates when they become available.
toggle([(ngModel)]='config.store.enableAutomaticUpdates', (ngModelChange)='saveConfiguration()')

.form-line(*ngIf='hostApp.platform !== Platform.Web')
C41M50N marked this conversation as resolved.
Show resolved Hide resolved
.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')
.header
.title(translate) Debugging
Expand Down
Loading