mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:13:23 +00:00
QML UI: use the same units that Subsurface used when saving the data
We already keep those units around so the backend HTML exporter can match them. So it makes perfect sense to also apply them in the mobile app. Fixes #987 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5f95daee8
commit
5860913e41
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,8 @@ void QMLManager::finishSetup()
|
|||
if (error) {
|
||||
appendTextToLog(QString("loading dives from cache failed %1").arg(error));
|
||||
} else {
|
||||
prefs.unit_system = informational_prefs.unit_system;
|
||||
prefs.units = informational_prefs.units;
|
||||
int i;
|
||||
struct dive *d;
|
||||
process_dives(false, false);
|
||||
|
@ -291,6 +293,8 @@ void QMLManager::loadDivesWithValidCredentials()
|
|||
setStartPageText(tr("Cloud storage error: %1").arg(errorString));
|
||||
return;
|
||||
}
|
||||
prefs.unit_system = informational_prefs.unit_system;
|
||||
prefs.units = informational_prefs.units;
|
||||
process_dives(false, false);
|
||||
|
||||
int i;
|
||||
|
|
Loading…
Add table
Reference in a new issue