1
0

qml: remember invoice/qr type on ReceiveDialog

This commit is contained in:
Sander van Grieken
2023-07-10 18:10:15 +02:00
parent 86d79f3ec9
commit 023e8ff0eb

View File

@@ -117,7 +117,10 @@ ElDialog {
MouseArea {
anchors.fill: parent
enabled: _bolt11
onClicked: rootLayout.state = 'bolt11'
onClicked: {
rootLayout.state = 'bolt11'
Config.preferredRequestType = 'bolt11'
}
}
}
Rectangle {
@@ -133,7 +136,10 @@ ElDialog {
MouseArea {
anchors.fill: parent
enabled: _bip21uri
onClicked: rootLayout.state = 'bip21uri'
onClicked: {
rootLayout.state = 'bip21uri'
Config.preferredRequestType = 'bip21uri'
}
}
}
Rectangle {
@@ -149,7 +155,10 @@ ElDialog {
MouseArea {
anchors.fill: parent
enabled: _address
onClicked: rootLayout.state = 'address'
onClicked: {
rootLayout.state = 'address'
Config.preferredRequestType = 'address'
}
}
}
}