1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

menu bar on mac

This commit is contained in:
Kyle Spearrin
2019-06-01 22:15:24 -04:00
parent 78e4601413
commit b51d279ba6
3 changed files with 5 additions and 2 deletions

2
jslib

Submodule jslib updated: cd46f64993...38fc0432c3

View File

@@ -569,6 +569,9 @@
"hideToTray": {
"message": "Hide to Tray"
},
"hideToMenuBar": {
"message": "Hide to Menu Bar"
},
"savedSetting": {
"message": "Saved setting `$SETTING_NAME$`.",
"placeholders": {

View File

@@ -49,7 +49,7 @@ export class MenuMain extends BaseMenu {
}
(template[template.length - 1].submenu as MenuItemConstructorOptions[]).splice(1, 0, {
label: this.main.i18nService.t('hideToTray'),
label: this.main.i18nService.t(process.platform === 'darwin' ? 'hideToMenuBar' : 'hideToTray'),
click: () => this.main.messagingService.send('hideToTray'),
accelerator: 'CmdOrCtrl+Shift+M',
});