mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-03 09:29:38 +00:00
Merge pull request #3585
b9a1fa8
History: display Payment proof dialog immediately after clicking the button (rating89us)
This commit is contained in:
commit
bea763d7f8
2 changed files with 4 additions and 3 deletions
3
main.qml
3
main.qml
|
@ -1003,7 +1003,6 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
function txProofComputed(txid, result){
|
function txProofComputed(txid, result){
|
||||||
informationPopup.title = qsTr("Payment proof") + translationManager.emptyString;
|
|
||||||
if (result.indexOf("error|") === 0) {
|
if (result.indexOf("error|") === 0) {
|
||||||
var errorString = result.split("|")[1];
|
var errorString = result.split("|")[1];
|
||||||
informationPopup.text = qsTr("Couldn't generate a proof because of the following reason: \n") + errorString + translationManager.emptyString;
|
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.text = result;
|
||||||
informationPopup.icon = StandardIcon.Critical;
|
informationPopup.icon = StandardIcon.Critical;
|
||||||
}
|
}
|
||||||
informationPopup.onCloseCallback = null
|
|
||||||
informationPopup.open()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// called on "checkProof"
|
// called on "checkProof"
|
||||||
|
|
|
@ -1717,6 +1717,10 @@ Rectangle {
|
||||||
|
|
||||||
console.log("getProof: Generate clicked: txid " + hash + ", address " + address);
|
console.log("getProof: Generate clicked: txid " + hash + ", address " + address);
|
||||||
middlePanel.getProofClicked(hash, 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){
|
function toClipboard(text){
|
||||||
|
|
Loading…
Reference in a new issue