mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove check option to show units in text label
Currently the feature to show temperature units while adding dive is provided through checkbox in preferences->units section. This patch disables this checkbox and always enables this feature. Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d6af09b269
commit
ecc8c1d995
6 changed files with 5 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue