diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-04-04 04:37:21 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2021-04-04 11:14:18 +0200 |
commit | 4bc7bafc681fbc9cf046d39aaaac41726f7a5fcd (patch) | |
tree | 022379e25a94b9f89ac0c4766e70e9f838e93f8f /apps/playlist_viewer.c | |
parent | 4f374b38624e7dca94b4f952fc958d9401081ba1 (diff) | |
download | rockbox-4bc7bafc681fbc9cf046d39aaaac41726f7a5fcd.tar.gz rockbox-4bc7bafc681fbc9cf046d39aaaac41726f7a5fcd.zip |
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
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r-- | apps/playlist_viewer.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 318bdcd915..e0e2e787cd 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -853,6 +853,24 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename) | |||
853 | case ACTION_STD_MENU: | 853 | case ACTION_STD_MENU: |
854 | ret = PLAYLIST_VIEWER_MAINMENU; | 854 | ret = PLAYLIST_VIEWER_MAINMENU; |
855 | goto exit; | 855 | goto exit; |
856 | #ifdef HAVE_QUICKSCREEN | ||
857 | case ACTION_STD_QUICKSCREEN: | ||
858 | if (!global_settings.shortcuts_replaces_qs) | ||
859 | { | ||
860 | quick_screen_quick(button); | ||
861 | update_playlist(true); | ||
862 | gui_synclist_set_voice_callback(&playlist_lists, | ||
863 | global_settings.talk_file? | ||
864 | &playlist_callback_voice:NULL); | ||
865 | gui_synclist_set_icon_callback(&playlist_lists, | ||
866 | global_settings.playlist_viewer_icons? | ||
867 | &playlist_callback_icons:NULL); | ||
868 | gui_synclist_set_title(&playlist_lists, str(LANG_PLAYLIST), Icon_Playlist); | ||
869 | gui_synclist_draw(&playlist_lists); | ||
870 | gui_synclist_speak_item(&playlist_lists); | ||
871 | break; | ||
872 | } | ||
873 | #endif | ||
856 | default: | 874 | default: |
857 | if(default_event_handler(button) == SYS_USB_CONNECTED) | 875 | if(default_event_handler(button) == SYS_USB_CONNECTED) |
858 | { | 876 | { |