Proper sidecar precedence

This commit is contained in:
jpirnay
2026-05-13 22:53:05 +02:00
parent bd397b6de0
commit 8e5907ffc6
+1 -3
View File
@@ -177,9 +177,7 @@ void HomeActivity::loadRecentBooks(int maxBooks) {
// Also catches books registered before sidecar support (empty coverBmpPath).
const std::string sidecar = ReaderActivity::sidecarCoverPath(book.path);
if (!sidecar.empty()) {
const std::string bookCache = ReaderActivity::bookCacheDir(book.path);
const bool sidecarAlreadyStored =
book.coverBmpPath == sidecar || book.coverBmpPath.find(bookCache) != std::string::npos;
const bool sidecarAlreadyStored = book.coverBmpPath == sidecar;
LOG_DBG("HOME", "Sidecar for %s: stored=%s alreadyStored=%d", book.path.c_str(), book.coverBmpPath.c_str(),
sidecarAlreadyStored ? 1 : 0);
if (!sidecarAlreadyStored) {