mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Synced
This commit is contained in:
		| @@ -28,8 +28,22 @@ enum SortOrderSettings { ascending, descending } | ||||
|  | ||||
| const maxAPIRateLimitMinutes = 30; | ||||
| const minUpdateIntervalMinutes = maxAPIRateLimitMinutes + 30; | ||||
| const maxUpdateIntervalMinutes = 4320; | ||||
| List<int> updateIntervals = [15, 30, 60, 120, 180, 360, 720, 1440, 4320, 0] | ||||
| const maxUpdateIntervalMinutes = 43200; | ||||
| List<int> updateIntervals = [ | ||||
|   15, | ||||
|   30, | ||||
|   60, | ||||
|   120, | ||||
|   180, | ||||
|   360, | ||||
|   720, | ||||
|   1440, | ||||
|   4320, | ||||
|   10080, | ||||
|   20160, | ||||
|   43200, | ||||
|   0 | ||||
| ] | ||||
|     .where((element) => | ||||
|         (element >= minUpdateIntervalMinutes && | ||||
|             element <= maxUpdateIntervalMinutes) || | ||||
| @@ -462,4 +476,13 @@ class SettingsProvider with ChangeNotifier { | ||||
|     prefs?.setStringList('searchDeselected', list); | ||||
|     notifyListeners(); | ||||
|   } | ||||
|  | ||||
|   bool get beforeNewInstallsShareToAppVerifier { | ||||
|     return prefs?.getBool('beforeNewInstallsShareToAppVerifier') ?? true; | ||||
|   } | ||||
|  | ||||
|   set beforeNewInstallsShareToAppVerifier(bool val) { | ||||
|     prefs?.setBool('beforeNewInstallsShareToAppVerifier', val); | ||||
|     notifyListeners(); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user