summaryrefslogtreecommitdiff
path: root/modules/launcher/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-03 14:32:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-03 14:32:53 +1000
commit5978db658c541d4acf4de4a14139232f4a57284c (patch)
tree754eeff62e09569ead024f89cc638a002a12c923 /modules/launcher/Content.qml
parentlauncher: fix scrollbar (diff)
downloadcaelestia-shell-5978db658c541d4acf4de4a14139232f4a57284c.tar.gz
caelestia-shell-5978db658c541d4acf4de4a14139232f4a57284c.tar.bz2
caelestia-shell-5978db658c541d4acf4de4a14139232f4a57284c.zip
feat: launcher actions
Diffstat (limited to 'modules/launcher/Content.qml')
-rw-r--r--modules/launcher/Content.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml
index 6784b0e..3f9fbe2 100644
--- a/modules/launcher/Content.qml
+++ b/modules/launcher/Content.qml
@@ -36,7 +36,7 @@ Item {
id: list
padding: root.padding
- search: search.text
+ search: search
launcher: root.launcher
}
@@ -60,7 +60,7 @@ Item {
leftPadding: root.padding
rightPadding: root.padding
- placeholderText: qsTr("Type \">\" for commands")
+ placeholderText: qsTr(`Type "${LauncherConfig.actionPrefix}" for commands`)
background: StyledRect {
color: Appearance.alpha(Appearance.colours.m3surfaceContainerHigh, true)
@@ -69,8 +69,12 @@ Item {
onAccepted: {
if (list.currentItem) {
- Apps.launch(list.currentItem?.modelData);
- root.launcher.launcherVisible = false;
+ if (list.isAction)
+ list.currentItem.modelData.onClicked(list);
+ else {
+ Apps.launch(list.currentItem?.modelData);
+ root.launcher.launcherVisible = false;
+ }
}
}