summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/Settings.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-12 08:55:55 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 20:16:46 -0700
commitc454f6954f0fc5fdd490c50ff13f556660de5ed8 (patch)
treec02f22bf63e17dd8c5200ac7d7e2acfc3b550026 /mobile-widgets/qml/Settings.qml
parentf8e9fb72f12990ce5c89de94eeb4effa2757d38b (diff)
downloadsubsurface-c454f6954f0fc5fdd490c50ff13f556660de5ed8.tar.gz
mobile-widgets: make show_developer persistent
Remove developer from qmlprefs and use qPref instead Update qml show_developer is saved on disk, and thus remembered between starts. 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.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index 4ba414adf..484a69a67 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -363,10 +363,10 @@ Kirigami.ScrollablePage {
}
SsrfSwitch {
id: developerButton
- checked: prefs.developer
+ checked: PrefDisplay.show_developer
Layout.preferredWidth: gridWidth * 0.25
onClicked: {
- prefs.developer = checked
+ PrefDisplay.show_developer = checked
}
}
}