Commit 9835ae1b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

krunner: improve the logic of the busy indicator

Only show it after a bit of querying (500ms), disable it as soon as the
query ends.

BUG: 426746

(cherry picked from commit c212564f)
parent 928adc30
......@@ -104,13 +104,14 @@ ColumnLayout {
Timer {
id: queryTimer
property bool queryDisplay: false
running: results.querying || queryDisplay
onRunningChanged: if (running) {
queryDisplay = true
onTriggered: if (!results.querying) {
running: results.querying
repeat: true
onRunningChanged: if (queryDisplay && !running) {
queryDisplay = false
onTriggered: if (!queryDisplay) {
queryDisplay = true
interval: 500
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment