mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-24 18:09:42 +02:00
Language fix for #185
This commit is contained in:
@@ -145,8 +145,11 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
],
|
||||
onChanged: (value) {
|
||||
settingsProvider.forcedLocale = value;
|
||||
context.setLocale(Locale(settingsProvider.forcedLocale ??
|
||||
context.fallbackLocale!.languageCode));
|
||||
if (value != null) {
|
||||
context.setLocale(Locale(value));
|
||||
} else {
|
||||
context.resetLocale();
|
||||
}
|
||||
});
|
||||
|
||||
var intervalDropdown = DropdownButtonFormField(
|
||||
|
Reference in New Issue
Block a user