Browse Source

Refresh wallet after encryption status change.

Fixes #11
pull/9/head
Aditya Kulkarni 5 years ago
parent
commit
58c80aaf81
  1. 6
      src/mainwindow.cpp

6
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<json::string_t>()),

Loading…
Cancel
Save