Add BG update toggle

This commit is contained in:
Imran Remtulla
2023-08-21 20:32:41 -04:00
parent f5479ec82f
commit d08ff3fbae
14 changed files with 80 additions and 0 deletions

View File

@@ -309,4 +309,13 @@ class SettingsProvider with ChangeNotifier {
prefs?.setBool('reversePageTransitions', show);
notifyListeners();
}
bool get enableBackgroundUpdates {
return prefs?.getBool('enableBackgroundUpdates') ?? true;
}
set enableBackgroundUpdates(bool val) {
prefs?.setBool('enableBackgroundUpdates', val);
notifyListeners();
}
}