download comics in local favorites page

This commit is contained in:
2024-12-12 18:00:58 +08:00
parent 0bdb1299ca
commit c8e6e1311c
4 changed files with 93 additions and 31 deletions

View File

@@ -389,7 +389,7 @@ class LocalManager with ChangeNotifier {
return files.map((e) => "file://${e.path}").toList();
}
Future<bool> isDownloaded(String id, ComicType type, [int? ep]) async {
bool isDownloaded(String id, ComicType type, [int? ep]) {
var comic = find(id, type);
if (comic == null) return false;
if (comic.chapters == null || ep == null) return true;