Add: Releases and images cache retention options

This commit is contained in:
machiav3lli
2022-08-18 23:04:46 +02:00
parent 5cb84ba32b
commit 8ae6590a6a
3 changed files with 20 additions and 0 deletions

View File

@ -24,6 +24,9 @@ object Preferences {
private val keys = sequenceOf(
Key.Language,
Key.AutoSync,
Key.AutoSyncInterval,
Key.ReleasesCacheRetention,
Key.ImagesCacheRetention,
Key.InstallAfterSync,
Key.IncompatibleVersions,
Key.ShowScreenshots,
@ -138,6 +141,11 @@ object Preferences {
"auto_sync",
Value.EnumerationValue(Preferences.AutoSync.Wifi)
)
object ReleasesCacheRetention : Key<Int>("releases_cache_retention", Value.IntValue(1))
object ImagesCacheRetention : Key<Int>("images_cache_retention", Value.IntValue(14))
object AutoSyncInterval : Key<Int>("auto_sync_interval", Value.IntValue(60))
object InstallAfterSync :