From f708a039bd3e169fb66f658f6b0b039bd0da405a Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 10 Nov 2025 13:59:02 -0500 Subject: [PATCH] SmartPanel: prevent closing panel by right clicking inside the panel inactive area. --- Modules/MainScreen/SmartPanel.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/MainScreen/SmartPanel.qml b/Modules/MainScreen/SmartPanel.qml index 1d06371f..6a5d34aa 100644 --- a/Modules/MainScreen/SmartPanel.qml +++ b/Modules/MainScreen/SmartPanel.qml @@ -1037,11 +1037,11 @@ Item { // This prevents closing the panel when clicking inside it MouseArea { anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton z: -1 // Behind content, but on the panel background - onClicked: { - - // Accept and ignore - prevents propagation to background - } + onClicked: mouse => { + mouse.accepted = true // Accept and ignore - prevents propagation to background + } } }