mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	WiFi only BG update toggle (#819) + typo fix
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user