mobile: move call to savePreferences back to manager.

calls to savePreferences was moved to prefs. in
b8eb348f54, but the corresponding
C++ code was not merged.

Revert call to savePreferences to manager.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-06-17 17:56:07 +02:00 committed by Dirk Hohndel
parent a24f0d3107
commit cc77046db5

View file

@ -137,7 +137,7 @@ Kirigami.ScrollablePage {
onClicked: {
blueTheme()
prefs.theme = subsurfaceTheme.currentTheme
prefs.savePreferences()
manager.savePreferences()
}
}
@ -190,7 +190,7 @@ Kirigami.ScrollablePage {
onClicked: {
pinkTheme()
prefs.theme = subsurfaceTheme.currentTheme
prefs.savePreferences()
manager.savePreferences()
}
}
@ -242,7 +242,7 @@ Kirigami.ScrollablePage {
onClicked: {
darkTheme()
prefs.theme = subsurfaceTheme.currentTheme
prefs.savePreferences()
manager.savePreferences()
}
}
}
@ -279,7 +279,7 @@ Kirigami.ScrollablePage {
Layout.preferredWidth: gridWidth * 0.25
onEditingFinished: {
prefs.distanceThreshold = distanceThreshold.text
prefs.savePreferences()
manager.savePreferences()
}
}
@ -295,7 +295,7 @@ Kirigami.ScrollablePage {
Layout.preferredWidth: gridWidth * 0.25
onEditingFinished: {
prefs.timeThreshold = timeThreshold.text
prefs.savePreferences()
manager.savePreferences()
}
}