mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-22 21:25:46 +03:00
Don't include settings as defaults when manually creating backup
This commit is contained in:
parent
93cbeca5c0
commit
54ba1d719e
1 changed files with 7 additions and 2 deletions
|
@ -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.presentation.core.components.LabeledCheckbox
|
import tachiyomi.presentation.core.components.LabeledCheckbox
|
||||||
|
@ -161,7 +161,12 @@ 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,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue