diff --git a/Modules/TopBar/TopBar.qml b/Modules/TopBar/TopBar.qml index a04d79b3..ae004d97 100644 --- a/Modules/TopBar/TopBar.qml +++ b/Modules/TopBar/TopBar.qml @@ -540,7 +540,9 @@ PanelWindow { systemTrayContextMenu.contextMenuX = rightSection.x + rightSection.width - 400 - Theme.spacingL; systemTrayContextMenu.contextMenuY = Theme.barHeight - Theme.spacingXS; systemTrayContextMenu.showContextMenu = true; - menu.menuVisible = true; + if (menu) { + menu.menuVisible = true; + } } }