diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 70a9dc3cf..227d89b58 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -202,7 +202,7 @@ void MainTab::hideMessage() ui.diveEquipmentMessage->animatedHide(); ui.diveInfoMessage->animatedHide(); ui.diveStatisticsMessage->animatedHide(); - updateTextLabels(); + updateTextLabels(false); } void MainTab::closeMessage() @@ -224,12 +224,12 @@ void MainTab::displayMessage(QString str) ui.diveInfoMessage->animatedShow(); ui.diveStatisticsMessage->setText(str); ui.diveStatisticsMessage->animatedShow(); - updateTextLabels(true); + updateTextLabels(); } void MainTab::updateTextLabels(bool showUnits) { - if (showUnits && prefs.text_label_with_units) { + if (showUnits) { ui.airTempLabel->setText(tr("Air temp [%1]").arg(get_temp_unit())); ui.waterTempLabel->setText(tr("Water temp [%1]").arg(get_temp_unit())); } else { |