mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
fix(reader): remove pre-generation of cover BMP during book load
Cover BMP generation during book load could crash and prevent opening books. Let the cover be generated on-demand when entering sleep instead.
This commit is contained in:
parent
e9ffe1a39e
commit
7f7076be8c
@ -15,10 +15,6 @@ std::unique_ptr<Epub> ReaderActivity::loadEpub(const std::string& path) {
|
||||
|
||||
auto epub = std::unique_ptr<Epub>(new Epub(path, "/.crosspoint"));
|
||||
if (epub->load()) {
|
||||
// Pre-generate cover BMP for sleep screen (so it's cached when entering sleep)
|
||||
if (!epub->generateCoverBmp()) {
|
||||
Serial.printf("[%lu] [RDR] Cover BMP generation skipped or failed\n", millis());
|
||||
}
|
||||
return epub;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user