Skip to content

Commit 22c9f68

Browse files
committed
Fix: Handle our Sync Status for Logs correctly
1 parent 07fbc29 commit 22c9f68

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ozwadmin-main/logwindow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ LogWindow::LogWindow(QWidget *parent) :
1515

1616
this->m_log = OZWCore::get()->getQTOZWManager()->getLog();
1717
connect(this->m_log, &QTOZWLog::newLogLine, this, &LogWindow::newMsg);
18+
connect(this->m_log, &QTOZWLog::syncStatus, this, &LogWindow::syncStatus);
1819

1920
this->m_scrollTimer.setInterval(500);
2021
connect(&this->m_scrollTimer, &QTimer::timeout, this, &LogWindow::scrollWindow);
@@ -59,3 +60,7 @@ void LogWindow::logsReady(bool ready) {
5960
this->m_log->syncroniseLogs();
6061
}
6162
}
63+
64+
void LogWindow::syncStatus(quint32 size, bool finsihed) {
65+
qCDebug(ozwadmin) << "Sync Status: " << size << "Finsihed:" << finsihed;
66+
}

ozwadmin-main/logwindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ private slots:
2121
void newMsg(QDateTime time, LogLevels::Level level, quint8 s_node, QString s_msg);
2222
void scrollWindow();
2323
void logsReady(bool ready);
24+
void syncStatus(quint32 size, bool finsihed);
2425
private:
2526
Ui::LogWindow *ui;
2627
bool viewAtBottom = true;

0 commit comments

Comments
 (0)