Fix button label
This commit is contained in:
parent
b2e623a488
commit
34773a3b98
@ -6159,11 +6159,9 @@ bool MainWindow::prepareNextMessageFrame()
|
|||||||
m_i3bit = Varicode::JS8Call;
|
m_i3bit = Varicode::JS8Call;
|
||||||
|
|
||||||
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
|
||||||
@ -6364,7 +6361,7 @@ QString MainWindow::calculateDistance(QString const& value, int *pDistance)
|
|||||||
// this function is called by auto_tx_mode, which is called by autoButton.clicked
|
// this function is called by auto_tx_mode, which is called by autoButton.clicked
|
||||||
void MainWindow::on_startTxButton_toggled(bool checked)
|
void MainWindow::on_startTxButton_toggled(bool checked)
|
||||||
{
|
{
|
||||||
if(checked){
|
if(checked){
|
||||||
createMessage(ui->extFreeTextMsgEdit->toPlainText());
|
createMessage(ui->extFreeTextMsgEdit->toPlainText());
|
||||||
startTx();
|
startTx();
|
||||||
} else {
|
} else {
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user