From 599652cff13ad31d23b1b8bf8905533e447435d5 Mon Sep 17 00:00:00 2001 From: Weijie Gao Date: Tue, 29 Oct 2024 17:47:22 +0800 Subject: bootmenu: add reprint check Record the last active menu item and check if it equals to the current selected item before reprint. Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle Tested-by: Daniel Golle --- include/menu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/menu.h b/include/menu.h index 79643af272b..6cede89b950 100644 --- a/include/menu.h +++ b/include/menu.h @@ -40,6 +40,7 @@ int menu_show(int bootdelay); struct bootmenu_data { int delay; /* delay for autoboot */ int active; /* active menu entry */ + int last_active; /* last active menu entry */ int count; /* total count of menu entries */ struct bootmenu_entry *first; /* first menu entry */ }; -- cgit v1.2.3