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:
@@ -14,6 +14,9 @@ Rectangle {
|
|||||||
border.width: 1
|
border.width: 1
|
||||||
color: Theme.sidePanelBackground
|
color: Theme.sidePanelBackground
|
||||||
|
|
||||||
|
property var settingsPopup: null
|
||||||
|
property var aboutDialog: null
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 4
|
anchors.margins: 4
|
||||||
@@ -25,7 +28,7 @@ Rectangle {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
icon.source: "../icons/settings.svg"
|
icon.source: "../icons/settings.svg"
|
||||||
onClicked: utilFooter.parent.settingsPopup.open()
|
onClicked: if (settingsPopup) settingsPopup.open()
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: 8
|
radius: 8
|
||||||
@@ -73,7 +76,7 @@ Rectangle {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
icon.source: "../icons/about.svg"
|
icon.source: "../icons/about.svg"
|
||||||
onClicked: utilFooter.parent.aboutDialog.open()
|
onClicked: if (aboutDialog) aboutDialog.open()
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: 8
|
radius: 8
|
||||||
|
|||||||
Reference in New Issue
Block a user