From 3808216e3bfb7f9cc13cac09c2f6411e282b62d6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 21 Aug 2026 21:38:52 +0800 Subject: mathcalc: string_big -> string --- popups/launcher/components/DuckDuckGo.qml | 2 +- qml_plugin/src/launcher/mathcalc.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/popups/launcher/components/DuckDuckGo.qml b/popups/launcher/components/DuckDuckGo.qml index 4276f31..b8ad81e 100644 --- a/popups/launcher/components/DuckDuckGo.qml +++ b/popups/launcher/components/DuckDuckGo.qml @@ -39,7 +39,7 @@ IComponent { valid, priority: valid, answer, - predictiveCompletion: valid ? ' is ' + answer : '' + predictiveCompletion: valid && inputCleaned.toLowerCase() != answer.toLowerCase().trim() ? ' is ' + answer : '' }; } exec: function () { diff --git a/qml_plugin/src/launcher/mathcalc.rs b/qml_plugin/src/launcher/mathcalc.rs index 5b67d2f..d29239e 100644 --- a/qml_plugin/src/launcher/mathcalc.rs +++ b/qml_plugin/src/launcher/mathcalc.rs @@ -91,7 +91,8 @@ impl qobject::MathCalc { // to display scientific notation properly // other ones show both version without e or shows *10^_ // and have a = prefix - .to_string_big() + // to_string_big will result in 1/2=5.0000000000000000e − 1 + .to_string() .into(); if r != input.into() { QVariant::from(&r) -- cgit v1.2.3