Fix/manually deleting chapter ignores bookmark (#675)

* Rename "Chapters::isAutoDeletable" to "isDeletable"

* Rename "Chapters::getAutoDeletable" to "getDeletable"

* Prevent manually deleting bookmarked chapters unless allowed
This commit is contained in:
schroda
2024-03-26 23:39:04 +01:00
committed by GitHub
parent 06b2bca340
commit 6fc70121c6
4 changed files with 36 additions and 6 deletions

View File

@@ -203,7 +203,7 @@ export function Reader() {
const shouldDeleteChapter =
chapterToDeleteUpToDateData.isRead &&
Chapters.isAutoDeletable(chapterToDeleteUpToDateData, metadataSettings.deleteChaptersWithBookmark);
Chapters.isDeletable(chapterToDeleteUpToDateData, metadataSettings.deleteChaptersWithBookmark);
if (!shouldDeleteChapter) {
return -1;
}