Don't include settings as defaults when manually creating backup
(cherry picked from commit 54ba1d719e0f03db34e0d0df6c136c638c083d4f)
This commit is contained in:
parent
6fee96a40b
commit
18e63cafa0
@ -36,8 +36,8 @@ import eu.kanade.tachiyomi.util.system.DeviceUtil
|
|||||||
import eu.kanade.tachiyomi.util.system.toast
|
import eu.kanade.tachiyomi.util.system.toast
|
||||||
import kotlinx.collections.immutable.PersistentSet
|
import kotlinx.collections.immutable.PersistentSet
|
||||||
import kotlinx.collections.immutable.minus
|
import kotlinx.collections.immutable.minus
|
||||||
|
import kotlinx.collections.immutable.persistentSetOf
|
||||||
import kotlinx.collections.immutable.plus
|
import kotlinx.collections.immutable.plus
|
||||||
import kotlinx.collections.immutable.toPersistentSet
|
|
||||||
import kotlinx.coroutines.flow.update
|
import kotlinx.coroutines.flow.update
|
||||||
import tachiyomi.i18n.MR
|
import tachiyomi.i18n.MR
|
||||||
import tachiyomi.i18n.sy.SYMR
|
import tachiyomi.i18n.sy.SYMR
|
||||||
@ -162,7 +162,16 @@ private class CreateBackupScreenModel : StateScreenModel<CreateBackupScreenModel
|
|||||||
|
|
||||||
@Immutable
|
@Immutable
|
||||||
data class State(
|
data class State(
|
||||||
val flags: PersistentSet<Int> = BackupChoices.keys.toPersistentSet(),
|
val flags: PersistentSet<Int> = persistentSetOf(
|
||||||
|
BackupCreateFlags.BACKUP_CATEGORY,
|
||||||
|
BackupCreateFlags.BACKUP_CHAPTER,
|
||||||
|
BackupCreateFlags.BACKUP_TRACK,
|
||||||
|
BackupCreateFlags.BACKUP_HISTORY,
|
||||||
|
// SY -->
|
||||||
|
BackupCreateFlags.BACKUP_CUSTOM_INFO,
|
||||||
|
BackupCreateFlags.BACKUP_READ_MANGA,
|
||||||
|
// SY <--
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user