feat: add setting that allows removing books from recent list when read (#2043)

This commit is contained in:
KemoNine
2026-05-18 21:13:41 -04:00
committed by GitHub
parent cfd3a381ed
commit 6a98c2d865
28 changed files with 73 additions and 4 deletions
+5
View File
@@ -37,6 +37,11 @@ class RecentBooksStore {
void updateBook(const std::string& path, const std::string& title, const std::string& author,
const std::string& coverBmpPath);
// Remove the entry whose path matches (used when a book is finished/read).
// Returns true if an entry was found and removed (no-op + false otherwise).
// Persistence is best-effort: a failed save is logged, not reflected in the return.
bool removeByPath(const std::string& path);
// Repoint an entry's path (and coverBmpPath, if it lived under the old cache dir) after the
// backing file and cache dir were moved on disk. No-op if no entry matches oldPath.
// Persists on success. Keeps the entry's list position (does not reorder).