feat: add setting that allows removing books from recent list when read (#2043)
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user