mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Merge pull request #20599 from Joehuu/fix-language-dropdown-not-updating
Fix language settings dropdown not updating when changing language in first run setup
This commit is contained in:
commit
da51475298
@ -44,9 +44,12 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!LanguageExtensions.TryParseCultureCode(frameworkLocale.Value, out var locale))
|
frameworkLocale.BindValueChanged(locale =>
|
||||||
locale = Language.en;
|
{
|
||||||
languageSelection.Current.Value = locale;
|
if (!LanguageExtensions.TryParseCultureCode(locale.NewValue, out var language))
|
||||||
|
language = Language.en;
|
||||||
|
languageSelection.Current.Value = language;
|
||||||
|
}, true);
|
||||||
|
|
||||||
languageSelection.Current.BindValueChanged(val => frameworkLocale.Value = val.NewValue.ToCultureCode());
|
languageSelection.Current.BindValueChanged(val => frameworkLocale.Value = val.NewValue.ToCultureCode());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user