From 956e706f74468f29ea5fba5c122ea0a8e675c9de Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 21 Jun 2025 00:55:03 +1000 Subject: feat: launcher calculator Requires libqalculate --- modules/launcher/Content.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/launcher/Content.qml') 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; -- cgit v1.2.3-freya