mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-11 04:43:03 +03:00
Merge pull request #9624 from C41M50N/feature/hide-tray
add setting to hide tray (menubar for macos)
This commit is contained in:
commit
db2280e147
@ -183,9 +183,10 @@ export class Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enableTray (): void {
|
enableTray (): void {
|
||||||
if (!!this.tray || process.platform === 'linux') {
|
if (!!this.tray || process.platform === 'linux' || (this.configStore.hideTray ?? false) === true) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
this.tray = new Tray(`${app.getAppPath()}/assets/tray-darwinTemplate.png`)
|
this.tray = new Tray(`${app.getAppPath()}/assets/tray-darwinTemplate.png`)
|
||||||
this.tray.setPressedImage(`${app.getAppPath()}/assets/tray-darwinHighlightTemplate.png`)
|
this.tray.setPressedImage(`${app.getAppPath()}/assets/tray-darwinHighlightTemplate.png`)
|
||||||
|
@ -2036,6 +2036,10 @@ msgstr ""
|
|||||||
msgid "Show Serial connections"
|
msgid "Show Serial connections"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: locale/tmp-html/tabby-settings/src/components/windowSettingsTab.component.html:73
|
||||||
|
msgid "Hide 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/windowSettingsTab.component.html:73
|
||||||
|
msgid "Hide 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 ""
|
||||||
|
@ -43,6 +43,7 @@ enableWelcomeTab: true
|
|||||||
electronFlags:
|
electronFlags:
|
||||||
- ['force_discrete_gpu', '0']
|
- ['force_discrete_gpu', '0']
|
||||||
enableAutomaticUpdates: true
|
enableAutomaticUpdates: true
|
||||||
|
hideTray: false
|
||||||
version: 1
|
version: 1
|
||||||
vault: null
|
vault: null
|
||||||
encrypted: false
|
encrypted: false
|
||||||
|
@ -121,6 +121,15 @@ h3.mb-3(translate) Window
|
|||||||
label.btn.btn-secondary(for='frameFull')
|
label.btn.btn-secondary(for='frameFull')
|
||||||
span(translate) Full
|
span(translate) Full
|
||||||
|
|
||||||
|
.form-line(*ngIf='hostApp.platform !== Platform.Web && hostApp.platform !== Platform.Linux')
|
||||||
|
.header
|
||||||
|
.title(translate) Hide tray
|
||||||
|
.description(translate) Hide Tabby in tray or menu bar.
|
||||||
|
toggle(
|
||||||
|
[(ngModel)]='config.store.hideTray',
|
||||||
|
(ngModelChange)='saveConfiguration(true)'
|
||||||
|
)
|
||||||
|
|
||||||
h3.mt-4(translate) Docking
|
h3.mt-4(translate) Docking
|
||||||
|
|
||||||
.form-line(*ngIf='docking')
|
.form-line(*ngIf='docking')
|
||||||
|
Loading…
Reference in New Issue
Block a user