Fix button label

This commit is contained in:
Jordan Sherer 2018-10-06 01:51:15 -04:00
parent b2e623a488
commit 34773a3b98

View File

@ -6161,9 +6161,7 @@ bool MainWindow::prepareNextMessageFrame()
QString frame = popMessageFrame(); QString frame = popMessageFrame();
if(frame.isEmpty()){ if(frame.isEmpty()){
ui->nextFreeTextMsg->clear(); ui->nextFreeTextMsg->clear();
updateTxButtonDisplay();
// TODO: jsherer - this button thing is duplicated in two places :(
//ui->startTxButton->setText(QString("Send"));
return false; return false;
} else { } else {
@ -6179,8 +6177,7 @@ bool MainWindow::prepareNextMessageFrame()
m_i3bit |= Varicode::JS8CallLast; m_i3bit |= Varicode::JS8CallLast;
} }
// TODO: jsherer - this button thing is duplicated in two places :( updateTxButtonDisplay();
//ui->startTxButton->setText(QString("Sending (%1/%2)").arg(sent).arg(count));
if(ui->beaconButton->isChecked()){ if(ui->beaconButton->isChecked()){
// bump beacon // bump beacon
@ -8741,7 +8738,7 @@ void MainWindow::updateButtonDisplay(){
if(m_txTextDirtyDebounce.isActive()){ if(m_txTextDirtyDebounce.isActive()){
m_txTextDirtyDebounce.stop(); m_txTextDirtyDebounce.stop();
} }
m_txTextDirtyDebounce.start(150); m_txTextDirtyDebounce.start(100);
m_txTextDirty = false; m_txTextDirty = false;
} }
} }