Proper sidecar cover support
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "KOReaderCredentialStore.h"
|
||||
#include "MappedInputManager.h"
|
||||
#include "QrDisplayActivity.h"
|
||||
#include "ReaderActivity.h"
|
||||
#include "ReaderUtils.h"
|
||||
#include "RecentBooksStore.h"
|
||||
#include "SdCardFontGlobals.h"
|
||||
@@ -207,7 +208,9 @@ void EpubReaderActivity::onEnter() {
|
||||
if (!series.empty() && !epub->getSeriesIndex().empty()) {
|
||||
series += " #" + epub->getSeriesIndex();
|
||||
}
|
||||
RECENT_BOOKS.addBook(epub->getPath(), epub->getTitle(), epub->getAuthor(), series, epub->getThumbBmpPath());
|
||||
const std::string epubSidecar = ReaderActivity::sidecarCoverPath(epub->getPath());
|
||||
const std::string epubCover = epubSidecar.empty() ? epub->getThumbBmpPath() : epubSidecar;
|
||||
RECENT_BOOKS.addBook(epub->getPath(), epub->getTitle(), epub->getAuthor(), series, epubCover);
|
||||
const RecentBook currentBook = RECENT_BOOKS.getBookByPath(epub->getPath());
|
||||
bookEmbeddedStyleOverride = currentBook.embeddedStyleOverride;
|
||||
bookImageRenderingOverride = currentBook.imageRenderingOverride;
|
||||
|
||||
Reference in New Issue
Block a user