1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

LP-232 Hide configAlarmStatus label when disconnected

This commit is contained in:
Laurent Lalanne 2016-02-17 16:21:17 +01:00
parent 7c70da1123
commit ec0067ffcb

View File

@ -428,6 +428,9 @@ void ConfigInputWidget::enableControls(bool enable)
if (enable) {
updatePositionSlider();
} else {
// Hide configAlarmStatus when disconnected
ui->configAlarmStatus->setVisible(false);
}
}
@ -1807,6 +1810,7 @@ void ConfigInputWidget::updateConfigAlarmStatus()
bgColor = "red";
}
}
ui->configAlarmStatus->setVisible(true);
ui->configAlarmStatus->setStyleSheet(
"QLabel { background-color: " + bgColor + ";"
"color: rgb(255, 255, 255); border-radius: 5; margin:1px; font:bold; }");