mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 23:22:07 +00:00
fix delete chapters from library
This commit is contained in:
parent
9afb9871e8
commit
0fd9936cc9
1 changed files with 16 additions and 6 deletions
|
|
@ -1182,12 +1182,22 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
|
|||
);
|
||||
|
||||
try {
|
||||
if (await File(
|
||||
"${mangaDir!.path}${chapter.name}.cbz")
|
||||
.exists()) {
|
||||
File("${mangaDir.path}${chapter.name}.cbz")
|
||||
.deleteSync();
|
||||
}
|
||||
try {
|
||||
if (File(
|
||||
"${mangaDir!.path}${chapter.name}.cbz")
|
||||
.existsSync()) {
|
||||
File("${mangaDir.path}${chapter.name}.cbz")
|
||||
.deleteSync();
|
||||
}
|
||||
} catch (_) {}
|
||||
try {
|
||||
if (File(
|
||||
"${mangaDir!.path}${chapter.name}.mp4")
|
||||
.existsSync()) {
|
||||
File("${mangaDir.path}${chapter.name}.mp4")
|
||||
.deleteSync();
|
||||
}
|
||||
} catch (_) {}
|
||||
path!.deleteSync(recursive: true);
|
||||
} catch (_) {}
|
||||
isar.writeTxnSync(() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue