feat(settings): add launcherPanel option for bar right-click actions

This commit is contained in:
tibssy
2026-03-02 02:16:23 +00:00
parent a228b6ade5
commit 7fb0e8533b
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -360,6 +360,11 @@ Item {
} else if (bar.barRightClickAction === "settings") {
SettingsPanelService.toggle(SettingsPanel.Tab.General, -1, screen);
mouse.accepted = true;
} else if (bar.barRightClickAction === "launcherPanel") {
var launcherPanel = PanelService.getPanel("launcherPanel", screen);
var screenRelativePos = mapToItem(null, mouse.x, mouse.y);
launcherPanel?.toggle(null, screenRelativePos);
mouse.accepted = true;
}
}
}