home screen performance fix
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user