From ec0067ffcb5df4a067af1a32eabbac33e50db5fe Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 17 Feb 2016 16:21:17 +0100 Subject: [PATCH] LP-232 Hide configAlarmStatus label when disconnected --- ground/gcs/src/plugins/config/configinputwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ground/gcs/src/plugins/config/configinputwidget.cpp b/ground/gcs/src/plugins/config/configinputwidget.cpp index 9d10bb692..ba7ce10f2 100644 --- a/ground/gcs/src/plugins/config/configinputwidget.cpp +++ b/ground/gcs/src/plugins/config/configinputwidget.cpp @@ -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; }");