diff options
Diffstat (limited to 'modules/launcher/Content.qml')
| -rw-r--r-- | modules/launcher/Content.qml | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index c085976..be9fb91 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -79,25 +79,13 @@ Item { topPadding: Appearance.padding.larger bottomPadding: Appearance.padding.larger - placeholderText: qsTr("Type \"%1\" for commands").arg(Config.launcher.actionPrefix) + placeholderText: "Search programs" onAccepted: { const currentItem = list.currentList?.currentItem; if (currentItem) { - if (list.showWallpapers) { - if (Colours.scheme === "dynamic" && currentItem.modelData.path !== Wallpapers.actualCurrent) - Wallpapers.previewColourLock = true; - Wallpapers.setWallpaper(currentItem.modelData.path); - root.visibilities.launcher = false; - } else if (text.startsWith(Config.launcher.actionPrefix)) { - if (text.startsWith(`${Config.launcher.actionPrefix}calc `)) - currentItem.onClicked(); - else - currentItem.modelData.onClicked(list.currentList); - } else { - Apps.launch(currentItem.modelData); - root.visibilities.launcher = false; - } + Apps.launch(currentItem.modelData); + root.visibilities.launcher = false; } } |