Przeglądaj źródła

Default automatic legacy backups to true for now

arkon 4 lat temu
rodzic
commit
eed6db8e92

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt

@@ -271,7 +271,7 @@ class PreferencesHelper(val context: Context) {
 
     fun incognitoMode() = flowPrefs.getBoolean(Keys.incognitoMode, false)
 
-    fun createLegacyBackup() = flowPrefs.getBoolean(Keys.createLegacyBackup, false)
+    fun createLegacyBackup() = flowPrefs.getBoolean(Keys.createLegacyBackup, true)
 
     fun setChapterSettingsDefault(manga: Manga) {
         prefs.edit {

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt

@@ -147,7 +147,7 @@ class SettingsBackupController : SettingsController() {
             switchPreference {
                 key = Keys.createLegacyBackup
                 titleRes = R.string.pref_backup_auto_create_legacy
-                defaultValue = false
+                defaultValue = true
 
                 preferences.backupInterval().asImmediateFlow { isVisible = it > 0 }
                     .launchIn(scope)