mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Force update of tray menu if on linux (#233)
This commit is contained in:
@@ -132,6 +132,12 @@ export class TrayMain {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateContextMenu() {
|
||||||
|
if (this.contextMenu != null && this.isLinux()) {
|
||||||
|
this.tray.setContextMenu(this.contextMenu);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private hideDock() {
|
private hideDock() {
|
||||||
app.dock.hide();
|
app.dock.hide();
|
||||||
}
|
}
|
||||||
@@ -144,6 +150,10 @@ export class TrayMain {
|
|||||||
return process.platform === 'darwin';
|
return process.platform === 'darwin';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private isLinux() {
|
||||||
|
return process.platform === 'linux';
|
||||||
|
}
|
||||||
|
|
||||||
private async toggleWindow() {
|
private async toggleWindow() {
|
||||||
if (this.windowMain.win == null) {
|
if (this.windowMain.win == null) {
|
||||||
if (this.isDarwin()) {
|
if (this.isDarwin()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user