mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-01-22 20:23:19 -05:00
Fixed to select the 1st menu item when switching between upper and lower sub-menus.
This commit is contained in:
parent
58b1bbe0b5
commit
dbeb4023a2
@ -671,9 +671,7 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot)
|
||||
|
||||
if (g_ventoy_suppress_esc)
|
||||
default_entry = g_ventoy_suppress_esc_default;
|
||||
else if (g_ventoy_last_entry >= 0 && g_ventoy_last_entry < menu->size) {
|
||||
default_entry = g_ventoy_last_entry;
|
||||
}
|
||||
|
||||
/* If DEFAULT_ENTRY is not within the menu entries, fall back to
|
||||
the first entry. */
|
||||
else if (default_entry < 0 || default_entry >= menu->size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user