This commit is contained in:
jpirnay
2026-05-19 12:05:19 +02:00
parent d793db7891
commit d2f660ea64
-7
View File
@@ -308,7 +308,6 @@ void HomeActivity::loadRecentCovers(int coverHeight) {
if (FsHelpers::hasEpubExtension(book.path)) {
Epub epub(book.path, "/.crosspoint");
epub.load(true, true);
epub.load(true, true);
for (const auto& sz : thumbSizes) {
const std::string path = UITheme::getCoverThumbPath(book.coverBmpPath, sz.first, sz.second);
if (!Storage.exists(path.c_str())) success = epub.generateThumbBmp(sz.first, sz.second) && success;
@@ -335,7 +334,6 @@ void HomeActivity::loadRecentCovers(int coverHeight) {
if (FsHelpers::hasEpubExtension(book.path)) {
Epub epub(book.path, "/.crosspoint");
epub.load(true, true);
epub.load(true, true);
bool success = epub.generateThumbBmp(coverHeight);
if (!success) {
RECENT_BOOKS.updateBook(book.path, book.title, book.author, book.series, "");
@@ -472,11 +470,6 @@ void HomeActivity::loop() {
return;
}
if (firstRenderDone && !recentsLoaded && !recentsLoading) {
loadRecentCovers(UITheme::getInstance().getMetrics().homeCoverHeight);
return;
}
const int bookCount = static_cast<int>(recentBooks.size());
const int menuItemCount = static_cast<int>(menuEntries.size());
const bool inCarouselRow = (selectorIndex < bookCount);