fix: correct type names and restore cached variables
Some checks failed
CI / build (push) Failing after 2m4s

This commit is contained in:
cottongin 2026-01-28 10:13:06 -05:00
parent 800b07a2e5
commit 3e3be8bd23
No known key found for this signature in database
GPG Key ID: 0ECC91FE4655C262
2 changed files with 4 additions and 2 deletions

View File

@ -156,7 +156,7 @@ void MyLibraryActivity::loadBookmarkedBooks() {
// Try to get better metadata from recent books // Try to get better metadata from recent books
for (auto& book : bookmarkedBooks) { for (auto& book : bookmarkedBooks) {
auto it = std::find_if(recentBooks.begin(), recentBooks.end(), auto it = std::find_if(recentBooks.begin(), recentBooks.end(),
[&book](const RecentBooksStore::RecentBook& recent) { return recent.path == book.path; }); [&book](const RecentBook& recent) { return recent.path == book.path; });
if (it != recentBooks.end()) { if (it != recentBooks.end()) {
if (!it->title.empty()) book.title = it->title; if (!it->title.empty()) book.title = it->title;
if (!it->author.empty()) book.author = it->author; if (!it->author.empty()) book.author = it->author;
@ -208,7 +208,7 @@ void MyLibraryActivity::loadAllBooks() {
// Try to get metadata from recent books if available // Try to get metadata from recent books if available
auto it = std::find_if(recentBooks.begin(), recentBooks.end(), auto it = std::find_if(recentBooks.begin(), recentBooks.end(),
[&fullPath](const RecentBooksStore::RecentBook& recent) { return recent.path == fullPath; }); [&fullPath](const RecentBook& recent) { return recent.path == fullPath; });
if (it != recentBooks.end()) { if (it != recentBooks.end()) {
if (!it->title.empty()) result.title = it->title; if (!it->title.empty()) result.title = it->title;
if (!it->author.empty()) result.author = it->author; if (!it->author.empty()) result.author = it->author;

View File

@ -386,6 +386,8 @@ void EpubReaderActivity::loop() {
[this](QuickMenuAction action) { [this](QuickMenuAction action) {
// Cache values before exitActivity // Cache values before exitActivity
EpubReaderActivity* self = this; EpubReaderActivity* self = this;
GfxRenderer& cachedRenderer = renderer;
MappedInputManager& cachedMappedInput = mappedInput;
const Section* cachedSection = section.get(); const Section* cachedSection = section.get();
SemaphoreHandle_t cachedMutex = renderingMutex; SemaphoreHandle_t cachedMutex = renderingMutex;