From 54ba1d719e0f03db34e0d0df6c136c638c083d4f Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 24 Dec 2023 16:45:07 -0500 Subject: [PATCH] Don't include settings as defaults when manually creating backup --- .../more/settings/screen/data/CreateBackupScreen.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/data/CreateBackupScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/data/CreateBackupScreen.kt index 8ec5dc3628..cb758be40d 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/data/CreateBackupScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/data/CreateBackupScreen.kt @@ -36,8 +36,8 @@ import eu.kanade.tachiyomi.util.system.DeviceUtil import eu.kanade.tachiyomi.util.system.toast import kotlinx.collections.immutable.PersistentSet import kotlinx.collections.immutable.minus +import kotlinx.collections.immutable.persistentSetOf import kotlinx.collections.immutable.plus -import kotlinx.collections.immutable.toPersistentSet import kotlinx.coroutines.flow.update import tachiyomi.i18n.MR import tachiyomi.presentation.core.components.LabeledCheckbox @@ -161,7 +161,12 @@ private class CreateBackupScreenModel : StateScreenModel = BackupChoices.keys.toPersistentSet(), + val flags: PersistentSet = persistentSetOf( + BackupCreateFlags.BACKUP_CATEGORY, + BackupCreateFlags.BACKUP_CHAPTER, + BackupCreateFlags.BACKUP_TRACK, + BackupCreateFlags.BACKUP_HISTORY, + ), ) }