mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(settings): add launcherPanel option for bar right-click actions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user