Add mutex to SleepActivity

This commit is contained in:
jpirnay
2026-04-08 12:10:52 +02:00
parent efa4e82526
commit 4d9484af57
@@ -350,6 +350,7 @@ size_t pickSleepImageIndex(size_t numFiles) {
void SleepActivity::onEnter() { void SleepActivity::onEnter() {
Activity::onEnter(); Activity::onEnter();
RenderLock lock(*this);
// For OVERLAY mode the popup is suppressed so the frame buffer (reader page) stays intact // For OVERLAY mode the popup is suppressed so the frame buffer (reader page) stays intact
if (SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::OVERLAY) { if (SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::OVERLAY) {
GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP)); GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));