From 8c8218bdd8aa820b492cfc2cb6909b64d8de4f7a Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 1 Sep 2018 20:23:04 -0400 Subject: [PATCH] Fixed send button countdown text --- mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 16433c2..3cd76f0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -8776,6 +8776,12 @@ void MainWindow::updateButtonDisplay(){ ui->replyMacroButton->setDisabled(isTransmitting || emptyCallsign); ui->macrosMacroButton->setDisabled(isTransmitting); ui->queryButton->setDisabled(isTransmitting || emptyCallsign); + + if(isTransmitting){ + int count = m_txFrameCount; + int sent = count - m_txFrameQueue.count(); + ui->startTxButton->setText(QString("Sending (%1/%2)").arg(sent).arg(count)); + } } QString MainWindow::callsignSelected(){