From 023e8ff0eb929e147f974dea606c92325f6f15e2 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 10 Jul 2023 18:10:15 +0200 Subject: [PATCH] qml: remember invoice/qr type on ReceiveDialog --- electrum/gui/qml/components/ReceiveDialog.qml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/ReceiveDialog.qml b/electrum/gui/qml/components/ReceiveDialog.qml index 3fa4ec432..8dea47d81 100644 --- a/electrum/gui/qml/components/ReceiveDialog.qml +++ b/electrum/gui/qml/components/ReceiveDialog.qml @@ -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' + } } } }