mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-31 21:00:15 +02:00
Bugfix - app crashes when language set to zh_Hant_TW
This commit is contained in:
@@ -262,14 +262,14 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
child: Text(tr('followSystem')),
|
||||
),
|
||||
...supportedLocales.map((e) => DropdownMenuItem(
|
||||
value: e.key.toLanguageTag(),
|
||||
value: e.key,
|
||||
child: Text(e.value),
|
||||
))
|
||||
],
|
||||
onChanged: (value) {
|
||||
settingsProvider.forcedLocale = value;
|
||||
if (value != null) {
|
||||
context.setLocale(Locale(value));
|
||||
context.setLocale(value);
|
||||
} else {
|
||||
settingsProvider.resetLocaleSafe(context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user