Review comments

This commit is contained in:
jpirnay
2026-04-06 10:52:05 +02:00
parent b1462b37b7
commit 26dc65735f
+4 -3
View File
@@ -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;