From 06479725915e80dc87f41fa0fa78bd0d2436773a Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 5 Aug 2019 09:55:48 -0400 Subject: [PATCH] Fixed display of text countdown on send button --- mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 038f880..c55be1d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9680,10 +9680,10 @@ void MainWindow::updateTxButtonDisplay(){ left = (int)ceil(float(left)/TEST_FOX_WAVE_GEN_SLOTS); } int sent = qMax(1, count - left); - ui->startTxButton->setText(m_tune ? "Tuning" : QString("%1 (%2/%3)").arg(ui->turboButton->isChecked() ? "Turbo" : "Send").arg(sent).arg(count)); #else int left = m_txFrameQueue.count(); int sent = count - left; +#endif QString buttonText; if(m_tune){ @@ -9699,7 +9699,6 @@ void MainWindow::updateTxButtonDisplay(){ buttonText = QString("Ready (%1)").arg(timeLeft); } ui->startTxButton->setText(buttonText); -#endif ui->startTxButton->setEnabled(false); ui->startTxButton->setFlat(true); } else {