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:
parent
086a710478
commit
e0e7840a03
@ -25,6 +25,7 @@ T.BusyIndicator {
|
|||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
|
id: baseItem
|
||||||
/* implicitWidth and implicitHeight won't work unless they come
|
/* implicitWidth and implicitHeight won't work unless they come
|
||||||
* from a child of the contentItem. No idea why.
|
* from a child of the contentItem. No idea why.
|
||||||
*/
|
*/
|
||||||
@ -61,7 +62,7 @@ T.BusyIndicator {
|
|||||||
to: 360
|
to: 360
|
||||||
duration: 2000
|
duration: 2000
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
running: visible
|
running: control.running || baseItem.opacity > 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user