Hush Daemon infos update

This commit is contained in:
DenioD
2019-10-26 21:15:51 +02:00
parent b6e591d659
commit 84c3c45c78
5 changed files with 13 additions and 7 deletions

View File

@@ -174,6 +174,7 @@ void Controller::getInfoThenRefresh(bool force) {
static int lastBlock = 0;
int curBlock = reply["latest_block_height"].get<json::number_integer_t>();
model->setLatestBlock(curBlock);
ui->blockHeight->setText(QString::number(curBlock));
// Connected, so display checkmark.
QIcon i(":/icons/res/connected.gif");
@@ -184,7 +185,12 @@ void Controller::getInfoThenRefresh(bool force) {
//int version = reply["version"].get<json::string_t>();
int version = 1;
Settings::getInstance()->sethushdVersion(version);
ui->Version->setText(QString::fromStdString(reply["version"].get<json::string_t>()));
ui->Vendor->setText(QString::fromStdString(reply["vendor"].get<json::string_t>()));
// See if recurring payments needs anything
Recurring::getInstance()->processPending(main);