diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-05-05 11:50:42 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-05-05 11:50:43 +0200 |
| commit | f5450f9205bb75bdaabe2e4ff149835cb6fc73d8 (patch) | |
| tree | 35f73a5d286fc0944cc823c19a5e8384d0e4ddd1 /pages | |
| parent | 1f23df7e660d7c73e86c53198714b40cf674ced5 (diff) | |
| parent | f00a1818432fa8e09ccb643a5ce22e11bbbe1896 (diff) | |
| download | monzero-gui-f5450f9205bb75bdaabe2e4ff149835cb6fc73d8.tar.gz monzero-gui-f5450f9205bb75bdaabe2e4ff149835cb6fc73d8.tar.xz monzero-gui-f5450f9205bb75bdaabe2e4ff149835cb6fc73d8.zip | |
Merge pull request #706
f00a181 Disable rescan cache btn until we know if it's needed (Jaquee)
98b0406 Settings: Rescan wallet cache button (Jaquee)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/Settings.qml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pages/Settings.qml b/pages/Settings.qml index d4f0ce23..b3e9c9f6 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -121,6 +121,43 @@ Rectangle { settingsPasswordDialog.open(); } } + + +/* Rescan cache - Disabled until we know it's needed + + StandardButton { + id: rescanWalletbutton + shadowReleasedColor: "#FF4304" + shadowPressedColor: "#B32D00" + releasedColor: "#FF6C3C" + pressedColor: "#FF4304" + text: qsTr("Rescan wallet cache") + translationManager.emptyString + onClicked: { + // Show confirmation dialog + confirmationDialog.title = qsTr("Rescan wallet cache") + translationManager.emptyString; + confirmationDialog.text = qsTr("Are you sure you want to rebuild the wallet cache?\n" + + "The following information will be deleted\n" + + "- Recipient addresses\n" + + "- Tx keys\n" + + "- Tx descriptions\n\n" + + "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() { + walletManager.closeWallet(); + walletManager.clearWalletCache(persistentSettings.wallet_path); + walletManager.openWalletAsync(persistentSettings.wallet_path, appWindow.password, + persistentSettings.testnet); + } + + confirmationDialog.onRejectedCallback = null; + + confirmationDialog.open() + + } + } +*/ } //! Manage daemon |
