Review comments
This commit is contained in:
@@ -183,9 +183,10 @@ void SleepActivity::onEnter() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SleepActivity::renderCustomSleepScreen() const {
|
void SleepActivity::renderCustomSleepScreen() const {
|
||||||
const BookOverlayInfo overlayInfo = (SETTINGS.sleepCoverOverlay != 0 && !APP_STATE.openEpubPath.empty())
|
const BookOverlayInfo overlayInfo =
|
||||||
? getBookOverlayInfo(APP_STATE.openEpubPath)
|
(SETTINGS.sleepCoverOverlay != 0 && APP_STATE.lastSleepFromReader && !APP_STATE.openEpubPath.empty())
|
||||||
: BookOverlayInfo{};
|
? getBookOverlayInfo(APP_STATE.openEpubPath)
|
||||||
|
: BookOverlayInfo{};
|
||||||
|
|
||||||
// Check if we have a /.sleep (preferred) or /sleep directory
|
// Check if we have a /.sleep (preferred) or /sleep directory
|
||||||
const char* sleepDir = nullptr;
|
const char* sleepDir = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user