summaryrefslogtreecommitdiff
path: root/modules/launcher/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-21 00:55:03 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-21 00:55:03 +1000
commit956e706f74468f29ea5fba5c122ea0a8e675c9de (patch)
tree680df32f6e61ebe2b57dd59812df6ab9435fb783 /modules/launcher/Content.qml
parentlauncher: fix height when one item (diff)
downloadcaelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.tar.gz
caelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.tar.bz2
caelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.zip
feat: launcher calculator
Requires libqalculate
Diffstat (limited to 'modules/launcher/Content.qml')
-rw-r--r--modules/launcher/Content.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml
index 26496a6..486b67a 100644
--- a/modules/launcher/Content.qml
+++ b/modules/launcher/Content.qml
@@ -86,7 +86,10 @@ Item {
Wallpapers.setWallpaper(currentItem.modelData.path);
root.visibilities.launcher = false;
} else if (text.startsWith(Config.launcher.actionPrefix)) {
- currentItem.modelData.onClicked(list.currentList);
+ if (text.startsWith(`${Config.launcher.actionPrefix}calc `))
+ currentItem.onClicked();
+ else
+ currentItem.modelData.onClicked(list.currentList);
} else {
Apps.launch(currentItem.modelData);
root.visibilities.launcher = false;