Merge branch 'fi-rebuildcovers' of https://github.com/jpirnay/crosspoint-reader into fi-rebuildcovers
This commit is contained in:
@@ -308,6 +308,7 @@ 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;
|
||||
@@ -334,6 +335,7 @@ 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, "");
|
||||
@@ -470,6 +472,11 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user