Skip to content

Commit

Permalink
Allow custom servers
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Nov 17, 2019
1 parent 66c6046 commit 7a9552f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/settings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</size>
</property>
<property name="text">
<string>Server</string>
<string>Lightwallet Server</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 7a9552f

Please sign in to comment.