mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 13:51:50 +01:00
Put shortcut to backup menu in More
This commit is contained in:
parent
948cb31d1a
commit
a498f940c6
@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.ui.base.controller.RootController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
||||
import eu.kanade.tachiyomi.ui.category.CategoryController
|
||||
import eu.kanade.tachiyomi.ui.download.DownloadController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsBackupController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsMainController
|
||||
import eu.kanade.tachiyomi.util.preference.add
|
||||
@ -93,6 +94,14 @@ class MoreController :
|
||||
router.pushController(CategoryController().withFadeTransaction())
|
||||
}
|
||||
}
|
||||
preference {
|
||||
titleRes = R.string.label_backup
|
||||
iconRes = R.drawable.ic_backup_24dp
|
||||
iconTint = tintColor
|
||||
onClick {
|
||||
router.pushController(SettingsBackupController().withFadeTransaction())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preferenceCategory {
|
||||
|
@ -53,10 +53,7 @@ class SettingsBackupController : SettingsController() {
|
||||
}
|
||||
|
||||
override fun setupPreferenceScreen(screen: PreferenceScreen) = screen.apply {
|
||||
titleRes = R.string.backup
|
||||
|
||||
preferenceCategory {
|
||||
titleRes = R.string.backup
|
||||
titleRes = R.string.label_backup
|
||||
|
||||
preference {
|
||||
key = "pref_create_backup"
|
||||
@ -92,7 +89,7 @@ class SettingsBackupController : SettingsController() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preferenceCategory {
|
||||
titleRes = R.string.pref_backup_service_category
|
||||
|
||||
|
@ -61,7 +61,7 @@ class SettingsMainController : SettingsController() {
|
||||
preference {
|
||||
iconRes = R.drawable.ic_backup_24dp
|
||||
iconTint = tintColor
|
||||
titleRes = R.string.backup
|
||||
titleRes = R.string.label_backup
|
||||
onClick { navigateTo(SettingsBackupController()) }
|
||||
}
|
||||
preference {
|
||||
|
@ -18,7 +18,7 @@
|
||||
<string name="label_recent_updates">Updates</string>
|
||||
<string name="label_recent_manga">History</string>
|
||||
<string name="label_sources">Sources</string>
|
||||
<string name="label_backup">Backup</string>
|
||||
<string name="label_backup">Backup and restore</string>
|
||||
<string name="label_migration">Migrate</string>
|
||||
<string name="label_extensions">Extensions</string>
|
||||
<string name="label_extension_info">Extension info</string>
|
||||
@ -389,7 +389,6 @@
|
||||
<string name="pref_search_pinned_sources_only">Only include pinned sources</string>
|
||||
|
||||
<!-- Backup section -->
|
||||
<string name="backup">Backup</string>
|
||||
<string name="pref_create_backup">Create backup</string>
|
||||
<string name="pref_create_backup_summ">Can be used to restore current library</string>
|
||||
<string name="pref_restore_backup">Restore backup</string>
|
||||
|
Loading…
Reference in New Issue
Block a user