mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-18 19:21:53 +00:00
fix delete chapters from gallery
This commit is contained in:
parent
4e423af4bb
commit
619959c8be
1 changed files with 16 additions and 6 deletions
|
|
@ -1182,12 +1182,22 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
|
||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (await File(
|
try {
|
||||||
"${mangaDir!.path}${chapter.name}.cbz")
|
if (File(
|
||||||
.exists()) {
|
"${mangaDir!.path}${chapter.name}.cbz")
|
||||||
File("${mangaDir.path}${chapter.name}.cbz")
|
.existsSync()) {
|
||||||
.deleteSync();
|
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);
|
path!.deleteSync(recursive: true);
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
isar.writeTxnSync(() {
|
isar.writeTxnSync(() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue