mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user