Allow custom servers

This commit is contained in:
Aditya Kulkarni
2019-11-16 20:45:13 -08:00
parent 66c60464e6
commit 7a9552f5f1
2 changed files with 8 additions and 4 deletions

View File

@@ -442,9 +442,13 @@ void MainWindow::setupSettingsModal() {
if (reloadConnection) {
// Save settings
Settings::getInstance()->saveSettings(settings.cmbServer->currentText());
auto cl = new ConnectionLoader(this, rpc);
cl->loadConnection();
// Save the wallet
getRPC()->saveWallet([=] (auto) {
// Then reload the connection
auto cl = new ConnectionLoader(this, rpc);
cl->loadConnection();
});
}
}
});