Commit c212564f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

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
parent 43f81aa3
......@@ -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