From 83f0cee565c498243066bca6ea39da57ff62474a Mon Sep 17 00:00:00 2001 From: Zach Nelson Date: Thu, 7 May 2026 08:17:51 -0500 Subject: [PATCH] fix: Roundraff theme home menu offset with no recent books (#1845) ## Summary With the Roundraff theme selected and no recent books, the home screen menu shows a "Continue Reading" option and menu handling is offset by one ("Continue Reading" actually does "Browse Files", "File Transfer" actually does "Settings", etc.) Simple fix here is to omit the "Continue Reading" menu item when there are no recent books. --- ### 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/home/HomeActivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activities/home/HomeActivity.cpp b/src/activities/home/HomeActivity.cpp index ff07b4f0..7bb0a340 100644 --- a/src/activities/home/HomeActivity.cpp +++ b/src/activities/home/HomeActivity.cpp @@ -235,7 +235,7 @@ void HomeActivity::render(RenderLock&&) { menuIcons.insert(menuIcons.begin() + 2, Library); } - if (metrics.homeContinueReadingInMenu) { + if (metrics.homeContinueReadingInMenu && !recentBooks.empty()) { // Insert Continue Reading at the top if enabled in theme menuItems.insert(menuItems.begin(), tr(STR_CONTINUE_READING)); menuIcons.insert(menuIcons.begin(), Book);