Skip to content

Commit

Permalink
[#494] [BF] Markdown alignments. Fix design initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lyskouski committed Sep 26, 2024
1 parent a34b438 commit dc972c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/_classes/herald/app_locale.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class AppLocale extends ValueNotifier<Locale?> {
value = loc;
code = value.toString();
await AppPreferences.set(AppPreferences.prefLocale, newValue);
if (AppPreferences.get(AppPreferences.prefDesign) == null) {
await AppPreferences.set(AppPreferences.prefDesign, AppDesign.fromLocale(loc));
}
CurrencyDefaults.defaultLocale = loc;
if (callback != null) {
callback();
Expand All @@ -44,6 +41,9 @@ class AppLocale extends ValueNotifier<Locale?> {
final value = Localizations.localeOf(context).toString();
labels = AppLocalizations.of(context) ?? AppLocalizationsEn();
CurrencyProvider.initFromContext(context, locale: super.value);
if (AppPreferences.get(AppPreferences.prefDesign) == null) {
AppPreferences.set(AppPreferences.prefDesign, AppDesign.fromLocale(fromCode(value)));
}
set(value);
}
}

0 comments on commit dc972c1

Please sign in to comment.