Macros should be updated more frequently

This commit is contained in:
Jordan Sherer 2018-07-09 20:55:54 -04:00
parent 9907a80136
commit eb062fb0b8
2 changed files with 16 additions and 11 deletions

View File

@ -3942,6 +3942,8 @@ void MainWindow::guiUpdate()
}
}
displayTransmit();
m_iptt0=g_iptt;
m_btxok0=m_btxok;
} //End of guiUpdate
@ -7615,6 +7617,19 @@ void MainWindow::postDecode (bool is_new, QString const& message)
}
}
void MainWindow::displayTransmit(){
// Transmit Activity
update_dynamic_property (ui->startTxButton, "transmitting", m_transmitting);
if(ui->tableWidgetCalls->selectedItems().isEmpty() && ui->tableWidgetRXAll->selectedItems().isEmpty()){
ui->replyMacroButton->setDisabled(true);
ui->snrMacroButton->setDisabled(true);
} else {
ui->replyMacroButton->setDisabled(false);
ui->snrMacroButton->setDisabled(false);
}
}
void MainWindow::displayActivity(){
// RX Activity
int selectedOffset = -1;
@ -7741,17 +7756,6 @@ void MainWindow::displayActivity(){
block = logRxTxMessageText(d.utcTimestamp, d.isFree, d.text, d.freq, false, block);
m_rxFrameBlockNumbers[freq] = block;
}
// Transmit Activity
update_dynamic_property (ui->startTxButton, "transmitting", m_transmitting);
if(ui->tableWidgetCalls->selectedItems().isEmpty() && ui->tableWidgetRXAll->selectedItems().isEmpty()){
ui->replyMacroButton->setDisabled(true);
ui->snrMacroButton->setDisabled(true);
} else {
ui->replyMacroButton->setDisabled(false);
ui->snrMacroButton->setDisabled(false);
}
}
void MainWindow::postWSPRDecode (bool is_new, QStringList parts)

View File

@ -738,6 +738,7 @@ private:
void locationChange(QString const& location);
void replayDecodes ();
void postDecode (bool is_new, QString const& message);
void displayTransmit();
void displayActivity();
void postWSPRDecode (bool is_new, QStringList message_parts);
void enable_DXCC_entity (bool on);