Merge pull request #2861

4b0dcb9 StandardDialog: reset button text on close (selsta)
This commit is contained in:
luigi1111 2020-04-28 21:38:59 -05:00
commit fd5d1f584e
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
3 changed files with 4 additions and 2 deletions

View file

@ -90,6 +90,10 @@ Rectangle {
function close() {
root.visible = false;
// reset button text
okButton.text = qsTr("OK")
cancelButton.text = qsTr("Cancel")
closeCallback();
}

View file

@ -1475,7 +1475,6 @@ ApplicationWindow {
confirmationDialog.text += qsTr("Note: lmdb folder not found. A new folder will be created.") + "\n\n"
confirmationDialog.icon = StandardIcon.Question
confirmationDialog.cancelText = qsTr("Cancel")
// Continue
confirmationDialog.onAcceptedCallback = function() {

View file

@ -213,7 +213,6 @@ Rectangle {
+ "The old wallet cache file will be renamed and can be restored later.\n"
);
confirmationDialog.icon = StandardIcon.Question
confirmationDialog.cancelText = qsTr("Cancel")
confirmationDialog.onAcceptedCallback = function() {
appWindow.closeWallet(function() {
walletManager.clearWalletCache(persistentSettings.wallet_path);