From 5978db658c541d4acf4de4a14139232f4a57284c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 3 May 2025 14:32:53 +1000 Subject: feat: launcher actions --- modules/launcher/Content.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/launcher/Content.qml') 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; + } } } -- cgit v1.2.3-freya