diff options
Diffstat (limited to 'modules/launcher/Content.qml')
| -rw-r--r-- | modules/launcher/Content.qml | 12 |
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; + } } } |