shortcuts: Don't enter shortcuts menu if there are none
Change-Id: I83bef377a428829d99343acdefc7a9b826c78dd5
This commit is contained in:
parent
b2202a3d7c
commit
1d5a505019
1 changed files with 5 additions and 0 deletions
|
@ -418,6 +418,11 @@ int do_shortcut_menu(void *ignored)
|
|||
if (global_settings.talk_menu)
|
||||
list.get_talk = shortcut_menu_speak_item;
|
||||
|
||||
if (shortcut_count == 0)
|
||||
{
|
||||
splash(HZ, str(LANG_NO_FILES));
|
||||
return GO_TO_PREVIOUS;
|
||||
}
|
||||
push_current_activity(ACTIVITY_SHORTCUTSMENU);
|
||||
|
||||
while (done == GO_TO_PREVIOUS)
|
||||
|
|
Loading…
Reference in a new issue