diff options
| -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) |
