diff options
-rw-r--r-- | screen_ui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index 5ed74a6..aef714b 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -815,6 +815,10 @@ void ScreenRecoveryUI::StartMenu(const char* const * headers, const char* const menu_items = i; show_menu = true; menu_sel = initial_selection; + if (menu_show_start_ <= menu_sel - max_menu_rows_ || + menu_show_start_ > menu_sel) { + menu_show_start_ = menu_sel; + } update_screen_locked(); } pthread_mutex_unlock(&updateMutex); |