mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
6d274a24be
commit
f803c55a73
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue