diff options
| author | xiphon <xiphon@protonmail.com> | 2020-10-10 14:26:20 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-10-10 14:26:20 +0000 |
| commit | 4661167734d6da9ba6027e94984c26b6c7114cfc (patch) | |
| tree | 37eb396a26643cf89d38ab70965b83e22e1f3706 | |
| parent | d3943ca2a9e1fa27ec9141ed94e1d4fb530aca31 (diff) | |
| download | monzero-gui-4661167734d6da9ba6027e94984c26b6c7114cfc.tar.gz monzero-gui-4661167734d6da9ba6027e94984c26b6c7114cfc.tar.xz monzero-gui-4661167734d6da9ba6027e94984c26b6c7114cfc.zip | |
onTransactionCommitted: don't show informationPopup on success
| -rw-r--r-- | main.qml | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -997,16 +997,9 @@ ApplicationWindow { informationPopup.title = qsTr("Error") + translationManager.emptyString informationPopup.text = qsTr("Couldn't send the money: ") + transaction.errorString informationPopup.icon = StandardIcon.Critical + informationPopup.onCloseCallback = null; + informationPopup.open(); } else { - var txid_text = "" - informationPopup.title = qsTr("Information") + translationManager.emptyString - for (var i = 0; i < txid.length; ++i) { - if (txid_text.length > 0) - txid_text += ", " - txid_text += txid[i] - } - informationPopup.text = (viewOnly)? qsTr("Transaction saved to file: %1").arg(path) : qsTr("Monero sent successfully: %1 transaction(s) ").arg(txid.length) + txid_text + translationManager.emptyString - informationPopup.icon = StandardIcon.Information if (transactionDescription.length > 0) { for (var i = 0; i < txid.length; ++i) currentWallet.setUserNote(txid[i], transactionDescription); @@ -1015,10 +1008,7 @@ ApplicationWindow { // Clear tx fields middlePanel.transferView.clearFields() successfulTxPopup.open(txid) - } - informationPopup.onCloseCallback = null - informationPopup.open() currentWallet.refresh() currentWallet.disposeTransaction(transaction) currentWallet.storeAsync(function(success) { |
