From b9a1fa856397792e48547108678c04173399e504 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Tue, 22 Jun 2021 21:08:34 +0200 Subject: [PATCH] History: display Payment proof dialog immediately after clicking the button --- main.qml | 3 --- pages/History.qml | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.qml b/main.qml index 5c7d2285..280a54f3 100644 --- a/main.qml +++ b/main.qml @@ -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){