WiFi only BG update toggle (#819) + typo fix

This commit is contained in:
Imran Remtulla
2023-08-28 20:24:15 -04:00
parent bd8f608ee6
commit 8f739d9e0b
18 changed files with 97 additions and 18 deletions

View File

@@ -319,6 +319,15 @@ class SettingsProvider with ChangeNotifier {
notifyListeners();
}
bool get bgUpdatesOnWiFiOnly {
return prefs?.getBool('bgUpdatesOnWiFiOnly') ?? false;
}
set bgUpdatesOnWiFiOnly(bool val) {
prefs?.setBool('bgUpdatesOnWiFiOnly', val);
notifyListeners();
}
DateTime get lastBGCheckTime {
int? temp = prefs?.getInt('lastBGCheckTime');
return temp != null