mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
Update src/main.cpp
Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com>
This commit is contained in:
parent
7f9b5787c1
commit
cf04ae4a35
@ -313,7 +313,7 @@ void setup() {
|
|||||||
|
|
||||||
// Boot to home screen directly when back button is held or when reader activity crashes 3 times
|
// 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) ||
|
if (APP_STATE.openEpubPath.empty() || mappedInputManager.isPressed(MappedInputManager::Button::Back) ||
|
||||||
APP_STATE.readerActivityLoadCount > 2) {
|
APP_STATE.readerActivityLoadCount > 0) {
|
||||||
onGoHome();
|
onGoHome();
|
||||||
} else {
|
} else {
|
||||||
// Clear app state to avoid getting into a boot loop if the epub doesn't load
|
// Clear app state to avoid getting into a boot loop if the epub doesn't load
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user