浏览代码

LocalSource: Create cover file if it doesn't exist (#7954)

AntsyLich 2 年之前
父节点
当前提交
0c7b1bda7f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

@@ -349,6 +349,7 @@ class LocalSource(
             var coverFile = getCoverFile(manga.url, baseDirsFiles)
             if (coverFile == null) {
                 coverFile = File(mangaDir.absolutePath, DEFAULT_COVER_NAME)
+                coverFile.createNewFile()
             }
 
             // It might not exist at this point