Fix promise rejection on missing tray on Linux (#9265)

This commit is contained in:
Bernd Schoolmann 2024-05-29 13:32:13 +02:00 committed by GitHub
parent 86d6be3187
commit 9d342f61cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export class TrayMain {
}
updateContextMenu() {
if (this.contextMenu != null && this.isLinux()) {
if (this.tray != null && this.contextMenu != null && this.isLinux()) {
this.tray.setContextMenu(this.contextMenu);
}
}