Reset color of the "Super Hound" label only when an unverified fox is transmitting (not when other hound messages are received).

This commit is contained in:
Uwe Risse 2024-06-08 10:20:27 +02:00
parent d68ef69e9e
commit b11514c54b

View File

@ -4172,7 +4172,7 @@ void MainWindow::readFromStdout() //readFromStdout
verified = true;
ui->labDXped->setStyleSheet("QLabel {background-color: #00ff00; color: black;}");
} else {
verified = false;
if (decodedtext0.mid(5,2).contains("00") or decodedtext0.mid(5,2).contains("30")) verified = false;
}
if ((!verified && ui->labDXped->isVisible()) or ui->labDXped->text()!="Super Hound")
ui->labDXped->setStyleSheet("QLabel {background-color: red; color: white;}");