home screen performance fix

This commit is contained in:
cottongin
2026-01-24 03:59:08 -05:00
parent 2f21f55512
commit 7fce5b347d
9 changed files with 155 additions and 41 deletions

View File

@@ -120,8 +120,10 @@ void EpubReaderActivity::onEnter() {
}
}
// Save current epub as last opened epub and add to recent books
// Save current epub as last opened epub and cache title/author for home screen
APP_STATE.openEpubPath = epub->getPath();
APP_STATE.openBookTitle = epub->getTitle();
APP_STATE.openBookAuthor = epub->getAuthor();
APP_STATE.saveToFile();
RECENT_BOOKS.addBook(epub->getPath(), epub->getTitle(), epub->getAuthor());