Added BG update check interval + bugfixes

This commit is contained in:
Imran Remtulla
2022-08-26 17:15:16 -04:00
parent 2aca9d680b
commit 9459c96d48
4 changed files with 80 additions and 36 deletions

View File

@@ -37,6 +37,15 @@ class SettingsProvider with ChangeNotifier {
notifyListeners();
}
int get updateInterval {
return prefs?.getInt('updateInterval') ?? 1440;
}
set updateInterval(int min) {
prefs?.setInt('updateInterval', min < 15 ? 15 : min);
notifyListeners();
}
checkAndFlipFirstRun() {
bool result = prefs?.getBool('firstRun') ?? true;
if (result) {