Always attempt automatic backup creation
- Defaults to every 12 hours - Minimum number of backups is now 2, just to offer some level of redundancy in case something happens - If it's missing storage permissions, it'll fail but that's the user's loss if they somehow haven't granted that permission yet # Conflicts: # app/build.gradle.kts # app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt
This commit is contained in:
@@ -448,6 +448,15 @@ object EXHMigrations {
|
||||
remove("library_sorting_ascending")
|
||||
}
|
||||
}
|
||||
if (oldVersion under 40) {
|
||||
if (preferences.numberOfBackups().get() == 1) {
|
||||
preferences.numberOfBackups().set(2)
|
||||
}
|
||||
if (preferences.backupInterval().get() == 0) {
|
||||
preferences.backupInterval().set(12)
|
||||
BackupCreatorJob.setupTask(context)
|
||||
}
|
||||
}
|
||||
|
||||
// if (oldVersion under 1) { } (1 is current release version)
|
||||
// do stuff here when releasing changed crap
|
||||
|
||||
Reference in New Issue
Block a user