mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Locale: when entering page, guess language.
If user picks an installer language on the welcome page, then the system language follows that setting -- but only after the first action where Calamares must guess the system language based on location. So guess on entry, so that system language follows installer language. FIXES #688.
This commit is contained in:
parent
d545904f5c
commit
e1a5af6529
1 changed files with 7 additions and 0 deletions
|
@ -422,6 +422,13 @@ void
|
|||
LocalePage::onActivate()
|
||||
{
|
||||
m_regionCombo->setFocus();
|
||||
if ( m_selectedLocaleConfiguration.isEmpty() ||
|
||||
!m_selectedLocaleConfiguration.explicit_lang )
|
||||
{
|
||||
auto newLocale = guessLocaleConfiguration();
|
||||
m_selectedLocaleConfiguration.lang = newLocale.lang;
|
||||
updateLocaleLabels();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue