From b6249c2b8e39fd783700289beddf0b4df3a890f7 Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 9 Jul 2026 14:30:19 -0700 Subject: [PATCH] fix: added property var settingsPopup: null / property var aboutDialog: null to UtilityFooter.qml and updated onClicked to use local properties instead of utilFooter.parent.*. --- src/pygui/ISC/Tabs/components/UtilityFooter.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pygui/ISC/Tabs/components/UtilityFooter.qml b/src/pygui/ISC/Tabs/components/UtilityFooter.qml index 560729a..835566d 100644 --- a/src/pygui/ISC/Tabs/components/UtilityFooter.qml +++ b/src/pygui/ISC/Tabs/components/UtilityFooter.qml @@ -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