From 41c5eca98192577f1f7cf06ae2d8c8e30badd288 Mon Sep 17 00:00:00 2001 From: Ingvix Date: Sat, 14 Oct 2017 14:48:54 +0300 Subject: [PATCH] Remove useless ConfigurationValue And bind to the ConfigurationGroup in ApplicationWindow --- qml/pages/Settings.qml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/qml/pages/Settings.qml b/qml/pages/Settings.qml index 1991a57..113fb15 100644 --- a/qml/pages/Settings.qml +++ b/qml/pages/Settings.qml @@ -25,14 +25,13 @@ Dialog { onAccepted: { if (dragging.enabled) { - draggingEnabled.value = dragging.checked + configurations.draggingEnabled = dragging.checked } } SilicaFlickable { anchors.fill: parent Column { - spacing: Theme.paddingMedium anchors { left: parent.left @@ -50,15 +49,10 @@ Dialog { TextSwitch { id: dragging width: parent.width - checked: draggingEnabled.value + checked: configurations.draggingEnabled text: "Enable drag and drop" description: "Allows you to drag and drop value from button to cell and from selected cell to another" } } } - ConfigurationValue { - id: draggingEnabled - key: "/apps/harbour-sudoku/settings/draggingEnabled" - defaultValue: false - } }