From 26dc65735f83dcb1d7a8fed677d4486fd27e69ff Mon Sep 17 00:00:00 2001 From: jpirnay Date: Mon, 6 Apr 2026 10:52:05 +0200 Subject: [PATCH] Review comments --- src/activities/boot_sleep/SleepActivity.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index f9475e2c..d1ac257b 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -183,9 +183,10 @@ void SleepActivity::onEnter() { } void SleepActivity::renderCustomSleepScreen() const { - const BookOverlayInfo overlayInfo = (SETTINGS.sleepCoverOverlay != 0 && !APP_STATE.openEpubPath.empty()) - ? getBookOverlayInfo(APP_STATE.openEpubPath) - : BookOverlayInfo{}; + const BookOverlayInfo overlayInfo = + (SETTINGS.sleepCoverOverlay != 0 && APP_STATE.lastSleepFromReader && !APP_STATE.openEpubPath.empty()) + ? getBookOverlayInfo(APP_STATE.openEpubPath) + : BookOverlayInfo{}; // Check if we have a /.sleep (preferred) or /sleep directory const char* sleepDir = nullptr;