From 405ce0c3c881d3bb4fea14211a56983592b41923 Mon Sep 17 00:00:00 2001 From: Ian Chasse <86565956+iandchasse@users.noreply.github.com> Date: Sun, 12 Apr 2026 21:03:23 -0400 Subject: [PATCH] feat: Rework "Cover + Custom" sleep screens to show covers only when currently reading (#1256) ## Summary The cover/custom setting was a bit misleading to me. Usually after you start reading a book you never see your customs again unless a cover fails to render for some reason. With this, you can easily show your custom images by just sleeping from the menus instead of the reader ## Additional Context * Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on). --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**< NO >**_ --- src/activities/boot_sleep/SleepActivity.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index d6a566df3..f89e7c3b5 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -24,8 +24,13 @@ void SleepActivity::onEnter() { case (CrossPointSettings::SLEEP_SCREEN_MODE::CUSTOM): return renderCustomSleepScreen(); case (CrossPointSettings::SLEEP_SCREEN_MODE::COVER): - case (CrossPointSettings::SLEEP_SCREEN_MODE::COVER_CUSTOM): return renderCoverSleepScreen(); + case (CrossPointSettings::SLEEP_SCREEN_MODE::COVER_CUSTOM): + if (APP_STATE.lastSleepFromReader) { + return renderCoverSleepScreen(); + } else { + return renderCustomSleepScreen(); + } default: return renderDefaultSleepScreen(); }