Resync
This commit is contained in:
@@ -308,7 +308,6 @@ void HomeActivity::loadRecentCovers(int coverHeight) {
|
|||||||
if (FsHelpers::hasEpubExtension(book.path)) {
|
if (FsHelpers::hasEpubExtension(book.path)) {
|
||||||
Epub epub(book.path, "/.crosspoint");
|
Epub epub(book.path, "/.crosspoint");
|
||||||
epub.load(true, true);
|
epub.load(true, true);
|
||||||
epub.load(true, true);
|
|
||||||
for (const auto& sz : thumbSizes) {
|
for (const auto& sz : thumbSizes) {
|
||||||
const std::string path = UITheme::getCoverThumbPath(book.coverBmpPath, sz.first, sz.second);
|
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;
|
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)) {
|
if (FsHelpers::hasEpubExtension(book.path)) {
|
||||||
Epub epub(book.path, "/.crosspoint");
|
Epub epub(book.path, "/.crosspoint");
|
||||||
epub.load(true, true);
|
epub.load(true, true);
|
||||||
epub.load(true, true);
|
|
||||||
bool success = epub.generateThumbBmp(coverHeight);
|
bool success = epub.generateThumbBmp(coverHeight);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
RECENT_BOOKS.updateBook(book.path, book.title, book.author, book.series, "");
|
RECENT_BOOKS.updateBook(book.path, book.title, book.author, book.series, "");
|
||||||
@@ -472,11 +470,6 @@ void HomeActivity::loop() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstRenderDone && !recentsLoaded && !recentsLoading) {
|
|
||||||
loadRecentCovers(UITheme::getInstance().getMetrics().homeCoverHeight);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const int bookCount = static_cast<int>(recentBooks.size());
|
const int bookCount = static_cast<int>(recentBooks.size());
|
||||||
const int menuItemCount = static_cast<int>(menuEntries.size());
|
const int menuItemCount = static_cast<int>(menuEntries.size());
|
||||||
const bool inCarouselRow = (selectorIndex < bookCount);
|
const bool inCarouselRow = (selectorIndex < bookCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user