Pārlūkot izejas kodu

Fix backup failing when source isn't installed

arkon 4 gadi atpakaļ
vecāks
revīzija
0a6de2b3ea

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt

@@ -131,7 +131,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
                 mangaEntries.add(backupMangaObject(manga, flags))
 
                 // Maintain set of extensions/sources used (excludes local source)
-                if (manga.source != 0L) {
+                if (manga.source != 0L && sourceManager.get(manga.source) != null) {
                     extensions.add("${manga.source}:${sourceManager.get(manga.source)!!.name}")
                 }
             }