From a8b6f7eff2991e9fb6e1d084ea7c66b48fe50a4b Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Mon, 8 Dec 2025 02:55:28 +1100 Subject: [PATCH] Render status bar for empty chapters --- src/screens/EpubReaderScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screens/EpubReaderScreen.cpp b/src/screens/EpubReaderScreen.cpp index 2136652..bfcd4d7 100644 --- a/src/screens/EpubReaderScreen.cpp +++ b/src/screens/EpubReaderScreen.cpp @@ -190,6 +190,7 @@ void EpubReaderScreen::renderScreen() { Serial.println("No pages to render"); const int width = renderer.getTextWidth("Empty chapter", BOLD); renderer.drawText((renderer.getPageWidth() - width) / 2, 300, "Empty chapter", true, BOLD); + renderStatusBar(); renderer.flushDisplay(); return; } @@ -198,6 +199,7 @@ void EpubReaderScreen::renderScreen() { Serial.printf("Page out of bounds: %d (max %d)\n", section->currentPage, section->pageCount); const int width = renderer.getTextWidth("Out of bounds", BOLD); renderer.drawText((renderer.getPageWidth() - width) / 2, 300, "Out of bounds", true, BOLD); + renderStatusBar(); renderer.flushDisplay(); return; }