Browse Source

Allow custom servers

pull/25/head^2
Aditya Kulkarni 5 years ago
parent
commit
7a9552f5f1
  1. 10
      src/mainwindow.cpp
  2. 2
      src/settings.ui

10
src/mainwindow.cpp

@ -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();
});
}
}
});

2
src/settings.ui

@ -46,7 +46,7 @@
</size>
</property>
<property name="text">
<string>Server</string>
<string>Lightwallet Server</string>
</property>
</widget>
</item>

Loading…
Cancel
Save