on xenial help sign in
preselect the TZ iff it's the only one available
commit7b9f9363d88fd9089f8a5bee309105b6c3386945 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 3 Sep 2015, 23:54 (11 years ago) parentbe999ba
1 file changed+7−1
qml/Wizard/Pages/50-timezone.qml+7−1
qml/Wizard/Pages/50-timezone.qml+7−1
@@ -45,7 +45,13 @@ LocalComponents.Page {
4545 }
4646
4747 Component.onCompleted: {
48− print("Current i18n", i18n.language)
48+ if (tzList.count == 1) { // preselect the first (and only) TZ
49+ var tz = tzList.itemAt(0,0);
50+ if (!!tz) {
51+ tz.clicked();
52+ }
53+ }
54+
4955 theme.palette.normal.backgroundText = "#525252" // "fix" the placeholder text in the search field
5056 }
5157