diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-21 21:38:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-21 21:38:52 +0800 |
| commit | 3808216e3bfb7f9cc13cac09c2f6411e282b62d6 (patch) | |
| tree | b138622a23f7be481a001008c5cb3d1173b3e0ae | |
| parent | 3f265d0f546bc8420cb8e5b8de40e99b7216731b (diff) | |
mathcalc: string_big -> string
| -rw-r--r-- | popups/launcher/components/DuckDuckGo.qml | 2 | ||||
| -rw-r--r-- | 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) |
