Merge pull request #825 from lonerOrz/fix/tray

Fix inconsistent tray drawer behavior for different mouse buttons
This commit is contained in:
Lysec
2025-11-22 12:54:30 +01:00
committed by GitHub
+6
View File
@@ -184,9 +184,15 @@ SmartPanel {
if (!modelData.onlyMenu) {
modelData.activate();
}
if ((PanelService.openedPanel !== null) && !PanelService.openedPanel.isClosing) {
PanelService.openedPanel.close();
}
} else if (mouse.button === Qt.MiddleButton) {
// Middle click: activate with middle button
modelData.secondaryActivate && modelData.secondaryActivate();
if ((PanelService.openedPanel !== null) && !PanelService.openedPanel.isClosing) {
PanelService.openedPanel.close();
}
} else if (mouse.button === Qt.RightButton) {
// Right click: open context menu
TooltipService.hideImmediately();