forked from Public/monero-gui
remove processing splash when transfer fails
This commit is contained in:
2
main.qml
2
main.qml
@@ -537,6 +537,7 @@ ApplicationWindow {
|
|||||||
console.log("integer amount: ", amountxmr);
|
console.log("integer amount: ", amountxmr);
|
||||||
console.log("integer unlocked",currentWallet.unlockedBalance)
|
console.log("integer unlocked",currentWallet.unlockedBalance)
|
||||||
if (amountxmr <= 0) {
|
if (amountxmr <= 0) {
|
||||||
|
hideProcessingSplash()
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
informationPopup.text = qsTr("Amount is wrong: expected number from %1 to %2")
|
informationPopup.text = qsTr("Amount is wrong: expected number from %1 to %2")
|
||||||
.arg(walletManager.displayAmount(0))
|
.arg(walletManager.displayAmount(0))
|
||||||
@@ -548,6 +549,7 @@ ApplicationWindow {
|
|||||||
informationPopup.open()
|
informationPopup.open()
|
||||||
return;
|
return;
|
||||||
} else if (amountxmr > currentWallet.unlockedBalance) {
|
} else if (amountxmr > currentWallet.unlockedBalance) {
|
||||||
|
hideProcessingSplash()
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
informationPopup.text = qsTr("insufficient funds. Unlocked balance: %1")
|
informationPopup.text = qsTr("insufficient funds. Unlocked balance: %1")
|
||||||
.arg(walletManager.displayAmount(currentWallet.unlockedBalance))
|
.arg(walletManager.displayAmount(currentWallet.unlockedBalance))
|
||||||
|
|||||||
Reference in New Issue
Block a user