Allow custom servers
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Server</string>
|
||||
<string>Lightwallet Server</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user