diff options
| author | selsta <selsta@sent.at> | 2020-04-25 21:10:25 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2020-04-25 21:10:25 +0200 |
| commit | 4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea (patch) | |
| tree | 5c681eb49c48653d19c4a400fe54718f6af26acf | |
| parent | 585fb2810dc0d9b79255b9bd479559b36aa087d8 (diff) | |
| download | monzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.tar.gz monzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.tar.xz monzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.zip | |
StandardDialog: reset button text on close
| -rw-r--r-- | components/StandardDialog.qml | 4 | ||||
| -rw-r--r-- | main.qml | 1 | ||||
| -rw-r--r-- | pages/settings/SettingsInfo.qml | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml index 38f0d369..df1aa2f4 100644 --- a/components/StandardDialog.qml +++ b/components/StandardDialog.qml @@ -90,6 +90,10 @@ Rectangle { function close() { root.visible = false; + // reset button text + okButton.text = qsTr("OK") + cancelButton.text = qsTr("Cancel") + closeCallback(); } @@ -1481,7 +1481,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() { diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 84d066e7..23346e77 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -212,7 +212,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); |
