diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-22 21:08:34 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-06-22 21:19:27 +0200 |
| commit | b9a1fa856397792e48547108678c04173399e504 (patch) | |
| tree | 48ff3ab6470d23dee78e556c479845a594063fad | |
| parent | 453388f7444c08fed77f9d4e256666abc77c64dd (diff) | |
| download | monzero-gui-b9a1fa856397792e48547108678c04173399e504.tar.gz monzero-gui-b9a1fa856397792e48547108678c04173399e504.tar.xz monzero-gui-b9a1fa856397792e48547108678c04173399e504.zip | |
History: display Payment proof dialog immediately after clicking the button
| -rw-r--r-- | main.qml | 3 | ||||
| -rw-r--r-- | pages/History.qml | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -1003,7 +1003,6 @@ ApplicationWindow { } function txProofComputed(txid, result){ - informationPopup.title = qsTr("Payment proof") + translationManager.emptyString; if (result.indexOf("error|") === 0) { var errorString = result.split("|")[1]; informationPopup.text = qsTr("Couldn't generate a proof because of the following reason: \n") + errorString + translationManager.emptyString; @@ -1012,8 +1011,6 @@ ApplicationWindow { informationPopup.text = result; informationPopup.icon = StandardIcon.Critical; } - informationPopup.onCloseCallback = null - informationPopup.open() } // called on "checkProof" diff --git a/pages/History.qml b/pages/History.qml index 85ba1aa0..1f961630 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1717,6 +1717,10 @@ Rectangle { console.log("getProof: Generate clicked: txid " + hash + ", address " + address); middlePanel.getProofClicked(hash, address, ''); + informationPopup.title = qsTr("Payment proof") + translationManager.emptyString; + informationPopup.text = qsTr("Generating payment proof") + "..." + translationManager.emptyString; + informationPopup.onCloseCallback = null + informationPopup.open() } function toClipboard(text){ |
