Skip to content

Commit

Permalink
Remove useless ConfigurationValue
Browse files Browse the repository at this point in the history
And bind to the ConfigurationGroup in ApplicationWindow
  • Loading branch information
Ingvix committed Oct 14, 2017
1 parent 44936d5 commit 41c5eca
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions qml/pages/Settings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
}

0 comments on commit 41c5eca

Please sign in to comment.