diff --git a/src/ui/QGCToolBar.cc b/src/ui/QGCToolBar.cc index b71ea8f95a44a7a7230cca9f2e4bb7ada654cd0d..8bda720b1abb8d7567a953e13404ef54250ae61d 100644 --- a/src/ui/QGCToolBar.cc +++ b/src/ui/QGCToolBar.cc @@ -464,7 +464,9 @@ void QGCToolBar::updateView() } } - toolBarBatteryVoltageLabel->setText(tr("%1 V").arg(batteryVoltage, 4, 'f', 1, ' ')); + } + if (toolBarBatteryVoltageLabel->isVisible()) { + toolBarBatteryVoltageLabel->setText(tr("%1 V").arg(batteryVoltage, 4, 'f', 1, ' ')); }