volumeosd: Ensure visibility of children is set

This ensures that all elements in the volume OSD get the window
visibility and can turn off any listeners. This avoids excessive
bindings being triggered when the osd is closed and audio is played.
This commit is contained in:
Devin Lin 2025-09-16 09:07:32 -04:00
parent 6d274a24be
commit f803c55a73
2 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,10 @@ Window {
ColumnLayout {
id: cards
// Ensure children get visibility state of window so that they don't update while closed
visible: window.visible
width: parent.width
anchors.left: parent.left
anchors.right: parent.right

View file

@ -77,6 +77,9 @@ Window {
contentHeight: cards.implicitHeight
boundsBehavior: Flickable.DragAndOvershootBounds
// Ensure children get visibility state of window so that they don't update while closed
visible: window.visible
pressDelay: 50
property real offset: -Kirigami.Units.gridUnit