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