Bar/MediaMini: don’t repaint invisible progress ring

This causes the entire container to get damaged, so avoid this when
the ring is disabled.
This commit is contained in:
Mia Herkt
2026-03-21 17:02:00 +01:00
parent bef335ab3a
commit 1e215ba93d
+8 -3
View File
@@ -458,13 +458,18 @@ Item {
property real progress: 0
property real lineWidth: 2
onProgressChanged: requestPaint()
Component.onCompleted: requestPaint()
function repaint() {
if (this.visible && this.opacity > 0)
requestPaint()
}
onProgressChanged: repaint()
Component.onCompleted: repaint()
Connections {
target: Color
function onMPrimaryChanged() {
requestPaint();
repaint();
}
}