mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Default automatic legacy backups to true for now
This commit is contained in:
parent
858664bfd7
commit
eed6db8e92
2 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ class PreferencesHelper(val context: Context) {
|
||||||
|
|
||||||
fun incognitoMode() = flowPrefs.getBoolean(Keys.incognitoMode, false)
|
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) {
|
fun setChapterSettingsDefault(manga: Manga) {
|
||||||
prefs.edit {
|
prefs.edit {
|
||||||
|
|
|
@ -147,7 +147,7 @@ class SettingsBackupController : SettingsController() {
|
||||||
switchPreference {
|
switchPreference {
|
||||||
key = Keys.createLegacyBackup
|
key = Keys.createLegacyBackup
|
||||||
titleRes = R.string.pref_backup_auto_create_legacy
|
titleRes = R.string.pref_backup_auto_create_legacy
|
||||||
defaultValue = false
|
defaultValue = true
|
||||||
|
|
||||||
preferences.backupInterval().asImmediateFlow { isVisible = it > 0 }
|
preferences.backupInterval().asImmediateFlow { isVisible = it > 0 }
|
||||||
.launchIn(scope)
|
.launchIn(scope)
|
||||||
|
|
Loading…
Reference in a new issue