diff options
author | Jocke <j.bygdell@gmail.com> | 2018-09-20 20:21:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-22 14:44:59 -0700 |
commit | 5b37d87e2d63453443f25623abeb47aab765aaec (patch) | |
tree | c0319f6e0e38ef880ac9421f21f7a68f638f8fe3 /mobile-widgets | |
parent | 9c8deef4774f335cbe66c64eb74397f228d41f5f (diff) | |
download | subsurface-5b37d87e2d63453443f25623abeb47aab765aaec.tar.gz |
Update divelist when changing units
We need to explicitly refresh the divelist when switching between
metric and imperial unit systems. Or the changes will not be visible until
we restart the app or scroll outside of what's in the current cache.
This will update both the divelist view and the dive profiles to show the new units.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 7c53c966e..b7da68eca 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -364,6 +364,7 @@ Kirigami.ScrollablePage { onClicked: { PrefUnits.set_unit_system("imperial") manager.changesNeedSaving() + manager.refreshDiveList() } } Controls.Label { @@ -378,6 +379,7 @@ Kirigami.ScrollablePage { onClicked: { PrefUnits.set_unit_system("metric") manager.changesNeedSaving() + manager.refreshDiveList() } } } |