on xenial help sign in
save the timezone into the system
945aabdLukáš Tinkl
qml/Wizard/Pages/50-timezone.qml+5−2
@@ -17,6 +17,7 @@
17import QtQuick 2.3
17import QtQuick 2.3
18import Ubuntu.Components 1.2
18import Ubuntu.Components 1.2
19import Wizard 0.1
19import Wizard 0.1
20+import Ubuntu.SystemSettings.TimeDate 1.0
20import ".." as LocalComponents
21import ".." as LocalComponents
21
22
22LocalComponents.Page {
23LocalComponents.Page {
@@ -131,8 +132,10 @@ LocalComponents.Page {
131 LocalComponents.StackButton {
132 LocalComponents.StackButton {
132 text: i18n.tr("Next")
133 text: i18n.tr("Next")
133 enabled: selectedTimeZone != ""
134 enabled: selectedTimeZone != ""
134− // TODO save the timezone to system
135+ onClicked: {
136+ UbuntuTimeDatePanel.timeZone = selectedTimeZone
135− onClicked: pageStack.next()
137+ pageStack.next()
138+ }
136 }
139 }
137 }
140 }
138}
141}