Update src/main.cpp

Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com>
This commit is contained in:
GenesiaW 2026-02-03 21:51:05 +08:00 committed by GitHub
parent 7f9b5787c1
commit cf04ae4a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -313,7 +313,7 @@ void setup() {
// Boot to home screen directly when back button is held or when reader activity crashes 3 times
if (APP_STATE.openEpubPath.empty() || mappedInputManager.isPressed(MappedInputManager::Button::Back) ||
APP_STATE.readerActivityLoadCount > 2) {
APP_STATE.readerActivityLoadCount > 0) {
onGoHome();
} else {
// Clear app state to avoid getting into a boot loop if the epub doesn't load