mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correctly sync unit system to Subsurface-mobile
We were doing the right thing switching from metric to imperial, but in order to swtich back you had to restart. Now it works both ways. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
11a8ab6b1b
commit
ae9ab68096
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,8 @@ void QMLManager::openLocalThenRemote(QString url)
|
||||||
prefs.unit_system = git_prefs.unit_system;
|
prefs.unit_system = git_prefs.unit_system;
|
||||||
if (git_prefs.unit_system == IMPERIAL)
|
if (git_prefs.unit_system == IMPERIAL)
|
||||||
git_prefs.units = IMPERIAL_units;
|
git_prefs.units = IMPERIAL_units;
|
||||||
|
else if (git_prefs.unit_system == METRIC)
|
||||||
|
git_prefs.units = SI_units;
|
||||||
prefs.units = git_prefs.units;
|
prefs.units = git_prefs.units;
|
||||||
prefs.tankbar = git_prefs.tankbar;
|
prefs.tankbar = git_prefs.tankbar;
|
||||||
prefs.dcceiling = git_prefs.dcceiling;
|
prefs.dcceiling = git_prefs.dcceiling;
|
||||||
|
|
Loading…
Add table
Reference in a new issue