diff options
| author | Weijie Gao <[email protected]> | 2024-10-29 17:47:22 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-04 16:41:38 -0600 |
| commit | 599652cff13ad31d23b1b8bf8905533e447435d5 (patch) | |
| tree | d687ea7c5b7210e1825c50ab6ca50db477ed7a2a /include | |
| parent | ccdd7948e22f21d2add8f51c4918a2c576dc5e91 (diff) | |
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 <[email protected]>
Reviewed-by: Daniel Golle <[email protected]>
Tested-by: Daniel Golle <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/menu.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ }; |
