mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
Show blockheight in statusbar when synced
This commit is contained in:
parent
3a18726170
commit
f264d88006
4 changed files with 7 additions and 6 deletions
|
@ -664,9 +664,10 @@ void MainWindow::onMultiBroadcast(const QMap<QString, QString> &txHexMap) {
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::onSynchronized() {
|
||||
void MainWindow::onSynchronized(int height, int target) {
|
||||
QString heightText = QString("Synchronized at height %1").arg(QString::number(height));
|
||||
this->updateNetStats();
|
||||
this->setStatusText("Synchronized");
|
||||
this->setStatusText(heightText);
|
||||
}
|
||||
|
||||
void MainWindow::onBlockchainSync(int height, int target) {
|
||||
|
|
|
@ -155,7 +155,7 @@ private slots:
|
|||
|
||||
// libwalletqt
|
||||
void onBalanceUpdated(quint64 balance, quint64 spendable);
|
||||
void onSynchronized();
|
||||
void onSynchronized(int height, int target);
|
||||
void onWalletOpened();
|
||||
void onConnectionStatusChanged(int status);
|
||||
void onCreateTransactionError(const QString &message);
|
||||
|
|
|
@ -410,7 +410,7 @@ void Wallet::syncStatusUpdated(quint64 height, quint64 target) {
|
|||
}
|
||||
else {
|
||||
this->updateBalance();
|
||||
emit synchronized();
|
||||
emit synchronized(height, target);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -424,7 +424,7 @@ signals:
|
|||
|
||||
void refreshSync(int height, int target);
|
||||
void blockchainSync(int height, int target);
|
||||
void synchronized();
|
||||
void synchronized(int height, int target);
|
||||
void balanceUpdated(quint64 balance, quint64 spendable);
|
||||
void keysCorrupted();
|
||||
|
||||
|
|
Loading…
Reference in a new issue