Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -1751,4 +1752,4 @@ void MainWindow::toggleSearchbar(bool visible) {

MainWindow::~MainWindow() {
qDebug() << "~MainWindow";
}
}
2 changes: 1 addition & 1 deletion src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/libwalletqt/Wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ void Wallet::syncStatusUpdated(quint64 height, quint64 target) {
}
else {
this->updateBalance();
emit synchronized();
emit synchronized(height, target);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libwalletqt/Wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Q_OBJECT

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();

Expand Down