From 51bc41b5179ff12bf2767cd568dbf8266b72ca7e Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 12 Sep 2018 13:40:59 +0200 Subject: mobile-widgets: remove setTimeThreshold from system Use qPrefLocationService::set_time_threshold and remove from qmlprefs.cpp and qmlmanager.cpp Remark: mobile UI shows time in minutes, while it is stored (and calculated) in seconds. Therefore a /60 when reading and *60 when setting. Signed-off-by: Jan Iversen --- mobile-widgets/qml/Settings.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mobile-widgets/qml/Settings.qml') diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 22ff97056..68562a871 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -293,11 +293,10 @@ Kirigami.ScrollablePage { Controls.TextField { id: timeThreshold - text: prefs.timeThreshold + text: PrefLocationService.time_threshold / 60 Layout.preferredWidth: gridWidth * 0.25 onEditingFinished: { - prefs.timeThreshold = timeThreshold.text - manager.savePreferences() + PrefLocationService.time_threshold = timeThreshold.text * 60 } } -- cgit v1.2.3-70-g09d2