diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-20 16:20:05 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-20 16:24:38 -0700 |
commit | 039019039e89aedf4c5a0d81c351638a1e036335 (patch) | |
tree | 8af0293694ba5095d2bb9e6cb318d4e27e9726a2 /src/hci/tui/menu_ui.c | |
parent | c8e50bb0fd3d9d1629e5c78f92bbf7bc9af84f2c (diff) | |
download | ipxe-039019039e89aedf4c5a0d81c351638a1e036335.tar.gz |
[dynui] Allow for multiple flags on a user interface item
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui/menu_ui.c')
-rw-r--r-- | src/hci/tui/menu_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/tui/menu_ui.c b/src/hci/tui/menu_ui.c index 00cdab8df..b7b52ee62 100644 --- a/src/hci/tui/menu_ui.c +++ b/src/hci/tui/menu_ui.c @@ -267,7 +267,7 @@ int show_menu ( struct dynamic_ui *dynui, unsigned long timeout, if ( strcmp ( select, item->name ) == 0 ) ui.scroll.current = ui.scroll.count; } else { - if ( item->is_default ) + if ( item->flags & DYNUI_DEFAULT ) ui.scroll.current = ui.scroll.count; } } |