diff --git a/src/controller.cpp b/src/controller.cpp
index 51ee296..4b3b89b 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -30,6 +30,12 @@ Controller::Controller(MainWindow* main)
this->main = main;
this->ui = main->ui;
+ auto current_server = Settings::getInstance()->getSettings().server;
+ main->ui->current_server->setText(current_server);
+
+ auto stickyServer = Settings::getInstance()->getSettings().stickyServer;
+ main->ui->sticky_server->setText( stickyServer ? "True" : "False" );
+
// Setup balances table model
balancesTableModel = new BalancesTableModel(main->ui->balancesTable);
main->ui->balancesTable->setModel(balancesTableModel);
@@ -37,6 +43,7 @@ Controller::Controller(MainWindow* main)
// Setup transactions table model
transactionsTableModel = new TxTableModel(ui->transactionsTable);
main->ui->transactionsTable->setModel(transactionsTableModel);
+
// Set up timer to refresh Price
priceTimer = new QTimer(main);
@@ -61,10 +68,6 @@ Controller::Controller(MainWindow* main)
});
timer->start(Settings::priceRefreshSpeed);
- main->ui->current_server->setText("current.server");
- main->ui->config_server->setText("config.server");
- main->ui->sticky_server->setText("Sticky?");
-
// Create the data model
model = new DataModel();
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index ebce774..68f4cd9 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -1692,46 +1692,45 @@
-
-
+
Current Server
- -
-
+
-
+
- ...
+ <html><head/><body><p align="center">|</p></body></html>
-
- -
-
+
-
+
- Configured Server
+ Loading...
- -
-
+
+
-
+
- ...
+ Sticky Server
-
- -
-
+
-
+
- Sticky Server
+ <html><head/><body><p align="center">|</p></body></html>
- -
-
+
-
+
- ...
+ Loading...