mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-22 07:38:48 -04:00
Make the UDP protocol Clear (3) message two-way
External servers can clear either or both of the Band Activity and Rx Frequency decodes windows. This was requested by Dave, AA6YQ, so that DX Lab Suite applications can clear old decodes on band changes to ensure that decode highlighing is consistent.
This commit is contained in:
+12
-1
@@ -487,6 +487,17 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
});
|
||||
|
||||
// Network message handlers
|
||||
connect (m_messageClient, &MessageClient::clear_decodes, [this] (quint8 window) {
|
||||
++window;
|
||||
if (window & 1)
|
||||
{
|
||||
ui->decodedTextBrowser->erase ();
|
||||
}
|
||||
if (window & 2)
|
||||
{
|
||||
ui->decodedTextBrowser2->erase ();
|
||||
}
|
||||
});
|
||||
connect (m_messageClient, &MessageClient::reply, this, &MainWindow::replyToCQ);
|
||||
connect (m_messageClient, &MessageClient::replay, this, &MainWindow::replayDecodes);
|
||||
connect (m_messageClient, &MessageClient::location, this, &MainWindow::locationChange);
|
||||
@@ -3310,7 +3321,7 @@ void MainWindow::on_EraseButton_clicked ()
|
||||
|
||||
void MainWindow::band_activity_cleared ()
|
||||
{
|
||||
m_messageClient->clear_decodes ();
|
||||
m_messageClient->decodes_cleared ();
|
||||
QFile f(m_config.temp_dir ().absoluteFilePath ("decoded.txt"));
|
||||
if(f.exists()) f.remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user