mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 01:37:25 -04:00
Merge pull request #2861
4b0dcb9 StandardDialog: reset button text on close (selsta)
This commit is contained in:
@@ -90,6 +90,10 @@ Rectangle {
|
||||
|
||||
function close() {
|
||||
root.visible = false;
|
||||
// reset button text
|
||||
okButton.text = qsTr("OK")
|
||||
cancelButton.text = qsTr("Cancel")
|
||||
|
||||
closeCallback();
|
||||
}
|
||||
|
||||
|
||||
1
main.qml
1
main.qml
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user