diff --git a/src/controller.cpp b/src/controller.cpp index 3ba422b..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); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 1b239a9..68f4cd9 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1682,6 +1682,7 @@ + @@ -1689,6 +1690,51 @@ + + + + + Current Server + + + + + + + <html><head/><body><p align="center">|</p></body></html> + + + + + + + Loading... + + + + + + + + Sticky Server + + + + + + + <html><head/><body><p align="center">|</p></body></html> + + + + + + + Loading... + + + +