Skip to content

Commit 84b6bbe

Browse files
committed
Fix TypeError: Cannot read property 'setContextMenu' of undefined
Fixes regression introduced with a1c72b5 Related to: #207
1 parent e47f17e commit 84b6bbe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* New tray behaviour for linux #207
1818
* Improve sync error messages displayed to users #216
1919

20+
2021
## 1.2.1
2122
**Maintainer**: balloon-team <[email protected]>\
2223
**Date**: Thu Jan 09 10:44:43 CET 2020

app/ui/tray/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ module.exports = function(env, clientConfig) {
320320
}
321321

322322
function updateTrayMenu() {
323-
if (TRAY_CLICK_SHOW_WINDOW) return;
323+
if (TRAY_CLICK_SHOW_WINDOW || !tray) return;
324324

325325
const menu = menuFactory(loadMenu, clientConfig, showLogin, syncStatus)
326326

0 commit comments

Comments
 (0)