forked from len0rd/rockbox
shortcuts: respect talk_menu setting when deleting shortcut
Change-Id: I6f06db5a41c402eeb3703a25c5d51fd0e4fe354f
This commit is contained in:
parent
a98a8ce131
commit
c5e5a537c0
1 changed files with 4 additions and 2 deletions
|
@ -636,7 +636,8 @@ static int shortcut_menu_get_action(int action, struct gui_synclist *lists)
|
||||||
if (confirm_delete_yesno("") != YESNO_YES)
|
if (confirm_delete_yesno("") != YESNO_YES)
|
||||||
{
|
{
|
||||||
gui_synclist_set_title(lists, lists->title, lists->title_icon);
|
gui_synclist_set_title(lists, lists->title, lists->title_icon);
|
||||||
shortcut_menu_speak_item(selection, NULL);
|
if (global_settings.talk_menu)
|
||||||
|
shortcut_menu_speak_item(selection, NULL);
|
||||||
return ACTION_REDRAW;
|
return ACTION_REDRAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -651,7 +652,8 @@ static int shortcut_menu_get_action(int action, struct gui_synclist *lists)
|
||||||
|
|
||||||
if (shortcut_count > 0)
|
if (shortcut_count > 0)
|
||||||
{
|
{
|
||||||
shortcut_menu_speak_item(gui_synclist_get_sel_pos(lists), NULL);
|
if (global_settings.talk_menu)
|
||||||
|
shortcut_menu_speak_item(gui_synclist_get_sel_pos(lists), NULL);
|
||||||
return ACTION_REDRAW;
|
return ACTION_REDRAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue