mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
cleanup
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 18d267933b...3d93696fb5
@@ -1145,7 +1145,7 @@
|
|||||||
},
|
},
|
||||||
"alwaysOnTop": {
|
"alwaysOnTop": {
|
||||||
"message": "Always on Top",
|
"message": "Always on Top",
|
||||||
"description": "Bitwarden window should always stay on top of other windows"
|
"description": "Application indow should always stay on top of other windows"
|
||||||
},
|
},
|
||||||
"dateUpdated": {
|
"dateUpdated": {
|
||||||
"message": "Updated",
|
"message": "Updated",
|
||||||
|
|||||||
@@ -442,19 +442,18 @@ export class MenuMain extends BaseMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(template[template.length - 2].submenu as MenuItemConstructorOptions[]).splice(1, 0,
|
(template[template.length - 2].submenu as MenuItemConstructorOptions[]).splice(1, 0,
|
||||||
{
|
{
|
||||||
label: this.main.i18nService.t(process.platform === 'darwin' ? 'hideToMenuBar' : 'hideToTray'),
|
label: this.main.i18nService.t(process.platform === 'darwin' ? 'hideToMenuBar' : 'hideToTray'),
|
||||||
click: () => this.main.messagingService.send('hideToTray'),
|
click: () => this.main.messagingService.send('hideToTray'),
|
||||||
accelerator: 'CmdOrCtrl+Shift+M',
|
accelerator: 'CmdOrCtrl+Shift+M',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
label: this.main.i18nService.t('alwaysOnTop'),
|
label: this.main.i18nService.t('alwaysOnTop'),
|
||||||
checked: this.windowMain.win.isAlwaysOnTop(),
|
checked: this.windowMain.win.isAlwaysOnTop(),
|
||||||
click: () => this.main.windowMain.toggleAlwaysOnTop(),
|
click: () => this.main.windowMain.toggleAlwaysOnTop(),
|
||||||
accelerator: 'CmdOrCtrl+Shift+T',
|
accelerator: 'CmdOrCtrl+Shift+T',
|
||||||
},
|
});
|
||||||
);
|
|
||||||
this.menu = Menu.buildFromTemplate(template);
|
this.menu = Menu.buildFromTemplate(template);
|
||||||
Menu.setApplicationMenu(this.menu);
|
Menu.setApplicationMenu(this.menu);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user