From 9d342f61cb97e217756e04d1f6654642cb4768b2 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 29 May 2024 13:32:13 +0200 Subject: [PATCH] Fix promise rejection on missing tray on Linux (#9265) --- apps/desktop/src/main/tray.main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/main/tray.main.ts b/apps/desktop/src/main/tray.main.ts index 948c48f519a..8450a653222 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); } }