From 58c80aaf819acc0ccc06fc611cf826d9a4ac9335 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Thu, 31 Oct 2019 09:47:34 -0700 Subject: [PATCH] Refresh wallet after encryption status change. Fixes #11 --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6143aeb..e7cb1ed 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -275,6 +275,9 @@ void MainWindow::encryptWallet() { fnShowError(tr("Wallet Encryption Failed"), reply); } }); + + // And then refresh the UI + rpc->refresh(true); } else { fnShowError(tr("Wallet Encryption Failed"), res); } @@ -312,6 +315,9 @@ void MainWindow::removeWalletEncryption() { ); } }); + + // And then refresh the UI + rpc->refresh(true); } else { QMessageBox::critical(this, tr("Wallet Decryption Failed"), QString::fromStdString(res["error"].get()),