Commit 6827254e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

krunner: Fix performance issue raised by PC3

Simplifies the logic of the busy indicator since now it will already
fade out when it's not running.
Also addresses the logic of the timer which was off.

This made krunner freak out on Wayland for some reason to investigate,
both opacity animations were triggering a repaint and we tried to render
too often making the process block. With this change it works fine
parent 5eb251da
......@@ -94,22 +94,20 @@ ColumnLayout {
rightMargin: height
Behavior on opacity {
OpacityAnimator {
duration: units.longDuration
easing.type: Easing.InOutQuad
Timer {
id: queryTimer
running: results.querying
property bool queryDisplay: false
running: results.querying || queryDisplay
onRunningChanged: if (running) {
queryDisplay = true
onTriggered: if (!results.querying) {
queryDisplay = false
interval: 500
opacity: !queryTimer.running && results.querying ? 1 : 0
visible: opacity > 0
running: visible
running: queryTimer.queryDisplay
function move_up() {
if (length === 0) {
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