menu: Fix cosmetic bug where controls list was wrong when editor disabled

This commit is contained in:
mintsuki 2024-01-23 08:14:41 +01:00
parent 10fc4b2c9c
commit cf22ba1971

View File

@ -862,8 +862,9 @@ refresh:
if (!help_hidden) {
set_cursor_pos_helper(0, 3);
if (editor_enabled && selected_menu_entry->sub == NULL) {
print(" \e[32mARROWS\e[0m Select \e[32mENTER\e[0m Boot \e[32mE\e[0m Edit");
if (selected_menu_entry->sub == NULL) {
print(" \e[32mARROWS\e[0m Select \e[32mENTER\e[0m Boot %s",
editor_enabled ? "\e[32mE\e[0m Edit" : "");
} else {
print(" \e[32mARROWS\e[0m Select \e[32mENTER\e[0m %s",
selected_menu_entry->expanded ? "Collapse" : "Expand");