mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
LimeSDR: paint stream status icon in green only if stream is active. If stream is inactive but a valid status is obtained it is paint in blue
This commit is contained in:
parent
9f765a9732
commit
7ca778038e
@ -163,7 +163,12 @@ bool LimeSDROutputGUI::handleMessage(const Message& message)
|
||||
|
||||
if (report.getSuccess())
|
||||
{
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
||||
if (report.getActive()) {
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
||||
} else {
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : blue; }");
|
||||
}
|
||||
|
||||
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
|
||||
|
||||
if (report.getUnderrun() > 0) {
|
||||
|
@ -161,7 +161,12 @@ bool LimeSDRInputGUI::handleMessage(const Message& message)
|
||||
|
||||
if (report.getSuccess())
|
||||
{
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
||||
if (report.getActive()) {
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
||||
} else {
|
||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : blue; }");
|
||||
}
|
||||
|
||||
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
|
||||
|
||||
if (report.getUnderrun() > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user