mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 05:17:56 +01:00
Remove redundant DB call in library settings (closes #3128)
This commit is contained in:
@@ -212,6 +212,10 @@ class BackupRestoreService : Service() {
|
||||
|
||||
// Restore individual manga
|
||||
mangasJson.forEach {
|
||||
if (job?.isActive != true) {
|
||||
throw Exception(getString(R.string.restoring_backup_canceled))
|
||||
}
|
||||
|
||||
restoreManga(it.asJsonObject)
|
||||
}
|
||||
|
||||
@@ -252,10 +256,6 @@ class BackupRestoreService : Service() {
|
||||
?: JsonArray()
|
||||
)
|
||||
|
||||
if (job?.isActive != true) {
|
||||
throw Exception(getString(R.string.restoring_backup_canceled))
|
||||
}
|
||||
|
||||
try {
|
||||
restoreMangaData(manga, chapters, categories, history, tracks)
|
||||
} catch (e: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user