Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMLynch committed Nov 23, 2019
1 parent d985432 commit 7e513de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ void Controller::processInfo(const json& info) {
QString version = QString::fromStdString(info["version"].get<json::string_t>());
Settings::getInstance()->setZcashdVersion(version);

QString vversion = QString(APP_VERSION) % " (" % QString(__DATE__) % ")";
ui->version->setText(version);
ui->vendor->setText(vversion);

// Recurring payments are testnet only
if (!Settings::getInstance()->isTestnet())
main->disableRecurring();
Expand All @@ -166,6 +170,7 @@ void Controller::getInfoThenRefresh(bool force) {
int curBlock = reply["height"].get<json::number_integer_t>();
bool doUpdate = force || (model->getLatestBlock() != curBlock);
model->setLatestBlock(curBlock);
ui->blockheight->setText(QString::number(curBlock));

main->logger->write(QString("Refresh. curblock ") % QString::number(curBlock) % ", update=" % (doUpdate ? "true" : "false") );

Expand All @@ -181,10 +186,6 @@ void Controller::getInfoThenRefresh(bool force) {
main->statusIcon->setToolTip(tooltip);

//int version = reply["version"].get<json::string_t>();

QString vversion = QString(APP_VERSION) % " (" % QString(__DATE__) % ")";
ui->version->setText(QString::fromStdString(reply["version"].get<json::string_t>()));
ui->vendor->setText(vversion);

// See if recurring payments needs anything
Recurring::getInstance()->processPending(main);
Expand Down

0 comments on commit 7e513de

Please sign in to comment.