on xenial help sign in
Only update language if it changed
commit225ac0e513f507d5bea32ce06a7b0c7cc3502406 authorMichael Terry <michael.terry@canonical.com> dateWed 19 Nov 2014, 17:09 (12 years ago) parent4b57472
1 file changed+5−3
qml/Wizard/Pages/10-welcome.qml+5−3
qml/Wizard/Pages/10-welcome.qml+5−3
@@ -83,9 +83,11 @@ LocalComponents.Page {
8383 LocalComponents.StackButton {
8484 text: i18n.tr("Continue")
8585 onClicked: {
86− plugin.currentLanguage = listview.currentIndex
87− System.updateSessionLanguage(plugin.languageCodes[listview.currentIndex]);
88− i18n.language = i18n.language; // re-notify of change after above call (for qlocale change)
86+ if (plugin.currentLanguage !== listview.currentIndex) {
87+ plugin.currentLanguage = listview.currentIndex;
88+ System.updateSessionLanguage(plugin.languageCodes[listview.currentIndex]);
89+ i18n.language = i18n.language; // re-notify of change after above call (for qlocale change)
90+ }
8991 pageStack.next()
9092 }
9193 }