fix: added property var settingsPopup: null / property var aboutDialog: null to UtilityFooter.qml and updated onClicked to use local properties instead of utilFooter.parent.*.

This commit is contained in:
jack
2026-07-09 14:30:19 -07:00
parent 2fe8aef805
commit b6249c2b8e
@@ -14,6 +14,9 @@ Rectangle {
border.width: 1
color: Theme.sidePanelBackground
property var settingsPopup: null
property var aboutDialog: null
RowLayout {
anchors.fill: parent
anchors.margins: 4
@@ -25,7 +28,7 @@ Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
icon.source: "../icons/settings.svg"
onClicked: utilFooter.parent.settingsPopup.open()
onClicked: if (settingsPopup) settingsPopup.open()
background: Rectangle {
radius: 8
@@ -73,7 +76,7 @@ Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
icon.source: "../icons/about.svg"
onClicked: utilFooter.parent.aboutDialog.open()
onClicked: if (aboutDialog) aboutDialog.open()
background: Rectangle {
radius: 8