Commit ad3307bf authored by Jean Cyr's avatar Jean Cyr

Fix toolbar battery voltage not updating

parent 99f5f370
......@@ -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, ' '));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment