Update menu_dialog.c
This commit is contained in:
parent
9e3d6adf6e
commit
d36d3e2c89
|
@ -255,6 +255,7 @@ void menu_dialog_push_pending(bool push, enum menu_dialog_type type)
|
||||||
void menu_dialog_push(void)
|
void menu_dialog_push(void)
|
||||||
{
|
{
|
||||||
menu_displaylist_info_t info;
|
menu_displaylist_info_t info;
|
||||||
|
const char *label;
|
||||||
|
|
||||||
if (!menu_dialog_is_push_pending())
|
if (!menu_dialog_is_push_pending())
|
||||||
return;
|
return;
|
||||||
|
@ -264,10 +265,10 @@ void menu_dialog_push(void)
|
||||||
info.list = menu_entries_get_menu_stack_ptr(0);
|
info.list = menu_entries_get_menu_stack_ptr(0);
|
||||||
info.enum_idx = MENU_ENUM_LABEL_HELP;
|
info.enum_idx = MENU_ENUM_LABEL_HELP;
|
||||||
|
|
||||||
// Set the label string, if it exists.
|
/* Set the label string, if it exists. */
|
||||||
const char *label = msg_hash_to_str(MENU_ENUM_LABEL_HELP);
|
label = msg_hash_to_str(MENU_ENUM_LABEL_HELP);
|
||||||
if (label)
|
if (label)
|
||||||
info.label = strdup(label);
|
info.label = strdup(label);
|
||||||
|
|
||||||
menu_displaylist_ctl(DISPLAYLIST_HELP, &info);
|
menu_displaylist_ctl(DISPLAYLIST_HELP, &info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue