Browse Source

qml: remember invoice/qr type on ReceiveDialog

master
Sander van Grieken 2 years ago
parent
commit
023e8ff0eb
  1. 15
      electrum/gui/qml/components/ReceiveDialog.qml

15
electrum/gui/qml/components/ReceiveDialog.qml

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

Loading…
Cancel
Save