Remove missing books from recent list

This commit is contained in:
jpirnay
2026-05-15 19:22:58 +02:00
parent 684a96f108
commit 3ed5bc3673
4 changed files with 23 additions and 11 deletions
+7
View File
@@ -62,6 +62,13 @@ class RecentBooksStore {
// Get the count of recent books
int getCount() const { return static_cast<int>(recentBooks.size()); }
// Returns true if the book's file is missing from storage
static bool isMissing(const RecentBook& book);
// Remove entries whose backing file is no longer on the SD card.
// Returns true if any entry was removed. Does not persist — caller decides.
bool pruneMissing();
bool saveToFile() const;
bool loadFromFile();