1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Force update of tray menu if on linux (#233)

This commit is contained in:
Matt Gibson 2020-12-18 09:20:59 -06:00 committed by GitHub
parent f9042408f4
commit acdbc22953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,12 @@ export class TrayMain {
}
}
updateContextMenu() {
if (this.contextMenu != null && this.isLinux()) {
this.tray.setContextMenu(this.contextMenu);
}
}
private hideDock() {
app.dock.hide();
}
@ -144,6 +150,10 @@ export class TrayMain {
return process.platform === 'darwin';
}
private isLinux() {
return process.platform === 'linux';
}
private async toggleWindow() {
if (this.windowMain.win == null) {
if (this.isDarwin()) {