qml: parent channel open progress dialog to main.qml as it might live longer than OpenChannel

This commit is contained in:
Sander van Grieken
2022-07-26 19:07:11 +02:00
parent 4f3dc7a2cc
commit e9a1824a77
3 changed files with 21 additions and 13 deletions
@@ -27,6 +27,12 @@ ElDialog {
property alias error: errorText.text
property alias peer: peerText.text
function reset() {
state = ''
errorText.text = ''
peerText.text = ''
}
Item {
id: s
state: ''
@@ -52,6 +58,7 @@ ElDialog {
id: content
anchors.centerIn: parent
width: parent.width
spacing: constants.paddingLarge
RowLayout {
Layout.alignment: Qt.AlignHCenter
@@ -103,6 +110,7 @@ ElDialog {
id: infoText
visible: false
text: qsTr('Channel will be open after 3 confirmations')
width: parent.width
}
}
}