BusyIndicator: Do not rotate when invisible

It seems like the "visible" property is catching there is the wrong one
and would still rotate while invisible.

CCBUG: 426746
This commit is contained in:
Aleix Pol 2020-10-08 16:35:39 +02:00
parent 086a710478
commit e0e7840a03

View File

@ -25,6 +25,7 @@ T.BusyIndicator {
padding: 0
contentItem: Item {
id: baseItem
/* implicitWidth and implicitHeight won't work unless they come
* from a child of the contentItem. No idea why.
*/
@ -61,7 +62,7 @@ T.BusyIndicator {
to: 360
duration: 2000
loops: Animation.Infinite
running: visible
running: control.running || baseItem.opacity > 0
}
}
}