From baa828e900b2dc1c647c62483a13737baadfa76c Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 12 Sep 2018 09:12:03 +0200 Subject: mobile-widgets: move distanceThreshold handling to qPref Remove distanceThreshold from qmlprefs and use qPref instead update qml no user experience change Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- 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 484a69a67..22ff97056 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -278,11 +278,10 @@ Kirigami.ScrollablePage { Controls.TextField { id: distanceThreshold - text: prefs.distanceThreshold + text: PrefLocationService.distance_threshold Layout.preferredWidth: gridWidth * 0.25 onEditingFinished: { - prefs.distanceThreshold = distanceThreshold.text - manager.savePreferences() + PrefLocationService.distance_threshold = distanceThreshold.text } } -- cgit v1.2.3-70-g09d2