From 0589e63be72f710679d48e7b19823d7ebe3c55e9 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 30 Oct 2024 20:28:34 +0800 Subject: [PATCH] fix importing comic --- lib/pages/home_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 3195e2f..f4c0a66 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -699,7 +699,7 @@ class _ImportComicsWidgetState extends State<_ImportComicsWidget> { subtitle: '', tags: [], directory: directory.name, - chapters: Map.fromIterables(chapters, chapters), + chapters: hasChapters ? Map.fromIterables(chapters, chapters) : null, cover: coverPath, comicType: ComicType.local, downloadedChapters: chapters,