on xenial help sign in
Only update language if it changed
225ac0eMichael Terry
qml/Wizard/Pages/10-welcome.qml+5−3
@@ -83,9 +83,11 @@ LocalComponents.Page {
83 LocalComponents.StackButton {
83 LocalComponents.StackButton {
84 text: i18n.tr("Continue")
84 text: i18n.tr("Continue")
85 onClicked: {
85 onClicked: {
86+ if (plugin.currentLanguage !== listview.currentIndex) {
86− plugin.currentLanguage = listview.currentIndex
87+ plugin.currentLanguage = listview.currentIndex;
87− System.updateSessionLanguage(plugin.languageCodes[listview.currentIndex]);
88+ System.updateSessionLanguage(plugin.languageCodes[listview.currentIndex]);
88− i18n.language = i18n.language; // re-notify of change after above call (for qlocale change)
89+ i18n.language = i18n.language; // re-notify of change after above call (for qlocale change)
90+ }
89 pageStack.next()
91 pageStack.next()
90 }
92 }
91 }
93 }