diff --git a/lib/providers/settings_provider.dart b/lib/providers/settings_provider.dart index 71efb11..d7a2e0f 100644 --- a/lib/providers/settings_provider.dart +++ b/lib/providers/settings_provider.dart @@ -5,8 +5,10 @@ import '../models/settings.dart'; class SettingsProvider extends ChangeNotifier { Settings? _settings; + bool _initialized = false; Settings? get settings => _settings; + bool get initialized => _initialized; SettingsProvider() { initSettings(); @@ -30,6 +32,7 @@ class SettingsProvider extends ChangeNotifier { QueryConfig(moodHours ?? 0, moodMinutes ?? 0, moodDays), QueryConfig(sleepHours ?? 0, sleepMinutes ?? 0, sleepDays), TimeConfig(chessHours ?? 0, chessMinutes ?? 0)); + _initialized = group != 0 ? true : false; notifyListeners(); } }