1
mirror of https://github.com/monero-project/monero-gui synced 2025-01-02 21:26:24 +01:00

History: display Payment proof dialog immediately after clicking the button

This commit is contained in:
rating89us 2021-06-22 21:08:34 +02:00 committed by rating89us
parent 453388f744
commit b9a1fa8563
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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){