diff --git a/apps/desktop/src/main/tray.main.ts b/apps/desktop/src/main/tray.main.ts index 948c48f519..8450a65322 100644 --- a/apps/desktop/src/main/tray.main.ts +++ b/apps/desktop/src/main/tray.main.ts @@ -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); } }