mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Enable QuickScreen in filtered dir modes & playlist viewer
Will allow the QuickScreen to be accessed in the playlist catalogue and when editing a playlist using the playlist viewer. Change-Id: I4b7108db6384eb2077ffdccb2992f2e51a39f42f
This commit is contained in:
parent
4f374b3862
commit
4bc7bafc68
2 changed files with 24 additions and 6 deletions
|
@ -853,6 +853,24 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
|
||||||
case ACTION_STD_MENU:
|
case ACTION_STD_MENU:
|
||||||
ret = PLAYLIST_VIEWER_MAINMENU;
|
ret = PLAYLIST_VIEWER_MAINMENU;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
#ifdef HAVE_QUICKSCREEN
|
||||||
|
case ACTION_STD_QUICKSCREEN:
|
||||||
|
if (!global_settings.shortcuts_replaces_qs)
|
||||||
|
{
|
||||||
|
quick_screen_quick(button);
|
||||||
|
update_playlist(true);
|
||||||
|
gui_synclist_set_voice_callback(&playlist_lists,
|
||||||
|
global_settings.talk_file?
|
||||||
|
&playlist_callback_voice:NULL);
|
||||||
|
gui_synclist_set_icon_callback(&playlist_lists,
|
||||||
|
global_settings.playlist_viewer_icons?
|
||||||
|
&playlist_callback_icons:NULL);
|
||||||
|
gui_synclist_set_title(&playlist_lists, str(LANG_PLAYLIST), Icon_Playlist);
|
||||||
|
gui_synclist_draw(&playlist_lists);
|
||||||
|
gui_synclist_speak_item(&playlist_lists);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
||||||
{
|
{
|
||||||
|
|
|
@ -735,18 +735,18 @@ static int dirbrowse(void)
|
||||||
break;
|
break;
|
||||||
#ifdef HAVE_QUICKSCREEN
|
#ifdef HAVE_QUICKSCREEN
|
||||||
case ACTION_STD_QUICKSCREEN:
|
case ACTION_STD_QUICKSCREEN:
|
||||||
/* don't enter f2 from plugin browser */
|
|
||||||
if (*tc.dirfilter < NUM_FILTER_MODES)
|
|
||||||
{
|
|
||||||
if (global_settings.shortcuts_replaces_qs)
|
if (global_settings.shortcuts_replaces_qs)
|
||||||
|
{
|
||||||
|
if (*tc.dirfilter < NUM_FILTER_MODES)
|
||||||
{
|
{
|
||||||
global_status.last_screen = GO_TO_SHORTCUTMENU;
|
global_status.last_screen = GO_TO_SHORTCUTMENU;
|
||||||
return quick_screen_quick(button);
|
return quick_screen_quick(button);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if (quick_screen_quick(button))
|
else if (quick_screen_quick(button))
|
||||||
reload_dir = true;
|
reload_dir = true;
|
||||||
restore = true;
|
restore = true;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue