HImage: don't load spinner while invisible

This commit is contained in:
miruka 2020-07-18 23:44:24 -04:00
parent 84a41e09e1
commit 88fb71ff34

View File

@ -109,7 +109,11 @@ Image {
96 * theme.uiScale, Math.min(parent.width, parent.height) * 0.5, 96 * theme.uiScale, Math.min(parent.width, parent.height) * 0.5,
) )
height: width height: width
active: image.status === Image.Loading active:
image.visible &&
image.opacity > 0.01 &&
image.status === Image.Loading
sourceComponent: HBusyIndicator {} sourceComponent: HBusyIndicator {}
onProgressChanged: onProgressChanged: