From 5b37d87e2d63453443f25623abeb47aab765aaec Mon Sep 17 00:00:00 2001 From: Jocke Date: Thu, 20 Sep 2018 20:21:29 +0200 Subject: 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 --- mobile-widgets/qml/Settings.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mobile-widgets/qml') 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() } } } -- cgit v1.2.3-70-g09d2