Double-click on AS window to leave Tx Enable OFF.

This commit is contained in:
Joe Taylor
2024-01-24 15:10:15 -05:00
parent b84742b1fc
commit 495170e7a1
2 changed files with 10 additions and 1 deletions
+8 -1
View File
@@ -3954,7 +3954,14 @@ void MainWindow::callSandP2(int n)
}
setTxMsg(1);
ui->txFirstCheckBox->setChecked(m_txFirst);
if (!ui->autoButton->isChecked()) ui->autoButton->click(); // Enable Tx
static qint64 ms0=0;
qint64 ms=QDateTime::currentMSecsSinceEpoch();
if(ui->autoButton->isChecked()) {
if((ms-ms0)<=500) ui->autoButton->click(); // Disable Tx on double click
} else if((ms-ms0)>500) {
ui->autoButton->click(); // Enable Tx on single click
}
ms0=ms;
if(m_transmitting) m_restart=true;
}