Force update of tray menu if on linux (#233)
This commit is contained in:
parent
f9042408f4
commit
acdbc22953
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue