fix: correct type names and restore cached variables
Some checks failed
CI / build (push) Failing after 2m4s
Some checks failed
CI / build (push) Failing after 2m4s
This commit is contained in:
parent
800b07a2e5
commit
3e3be8bd23
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user