summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/Settings.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-12 09:12:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 20:17:39 -0700
commitbaa828e900b2dc1c647c62483a13737baadfa76c (patch)
treeb622cd0aa0f974427b60658d006d565cc0559f80 /mobile-widgets/qml/Settings.qml
parentc454f6954f0fc5fdd490c50ff13f556660de5ed8 (diff)
downloadsubsurface-baa828e900b2dc1c647c62483a13737baadfa76c.tar.gz
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 <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r--mobile-widgets/qml/Settings.qml5
1 files changed, 2 insertions, 3 deletions
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
}
}