Browse Source

Update the remaining blocks left in modaloverlay at init.

0.15
Jonas Schnelli 8 years ago
parent
commit
cf92bce526
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
  1. 3
      src/qt/bitcoingui.cpp

3
src/qt/bitcoingui.cpp

@ -478,6 +478,7 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel) @@ -478,6 +478,7 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
connect(_clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
connect(_clientModel, SIGNAL(networkActiveChanged(bool)), this, SLOT(setNetworkActive(bool)));
modalOverlay->setKnownBestHeight(_clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(_clientModel->getHeaderTipTime()));
setNumBlocks(_clientModel->getNumBlocks(), _clientModel->getLastBlockDate(), _clientModel->getVerificationProgress(NULL), false);
connect(_clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(setNumBlocks(int,QDateTime,double,bool)));
@ -505,8 +506,6 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel) @@ -505,8 +506,6 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
// initialize the disable state of the tray icon with the current value in the model.
setTrayIconVisible(optionsModel->getHideTrayIcon());
}
modalOverlay->setKnownBestHeight(clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(clientModel->getHeaderTipTime()));
} else {
// Disable possibility to show main window via action
toggleHideAction->setEnabled(false);

Loading…
Cancel
Save