mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 13:09:30 +02:00
Add BG update toggle
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user