From 455f3b24badd9c6cbf812bad5aae4880831cb657 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 15 Sep 2024 18:34:39 +0200 Subject: [PATCH] chore: small logic fix --- src/widgets/systray/SysTrayItem.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/widgets/systray/SysTrayItem.qml b/src/widgets/systray/SysTrayItem.qml index 950d980..b1ecf5d 100644 --- a/src/widgets/systray/SysTrayItem.qml +++ b/src/widgets/systray/SysTrayItem.qml @@ -16,9 +16,7 @@ MouseArea { item.activate(); break; case Qt.RightButton: - if (!item.hasMenu) - return; - menu.open(); + item.hasMenu && menu.open(); break; default: console.log("Buttonevent unhandled");