summaryrefslogtreecommitdiff
path: root/apps/menus/playlist_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/playlist_menu.c')
-rw-r--r--apps/menus/playlist_menu.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c
index 87a61a9b83..aa4a0604ba 100644
--- a/apps/menus/playlist_menu.c
+++ b/apps/menus/playlist_menu.c
@@ -60,10 +60,16 @@ int save_playlist_screen(struct playlist_info* playlist)
60 60
61 return 0; 61 return 0;
62} 62}
63
64static int playlist_view_(void)
65{
66 return GO_TO_PLAYLIST_VIEWER;
67}
68
63MENUITEM_FUNCTION(create_playlist_item, 0, ID2P(LANG_CREATE_PLAYLIST), 69MENUITEM_FUNCTION(create_playlist_item, 0, ID2P(LANG_CREATE_PLAYLIST),
64 (int(*)(void))create_playlist, NULL, NULL, Icon_NOICON); 70 (int(*)(void))create_playlist, NULL, NULL, Icon_NOICON);
65MENUITEM_FUNCTION(view_playlist, 0, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST), 71MENUITEM_FUNCTION(view_cur_playlist, MENU_FUNC_CHECK_RETVAL, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST),
66 (int(*)(void))playlist_viewer, NULL, NULL, Icon_NOICON); 72 (int(*)(void))playlist_view_, NULL, NULL, Icon_NOICON);
67MENUITEM_FUNCTION(save_playlist, MENU_FUNC_USEPARAM, ID2P(LANG_SAVE_DYNAMIC_PLAYLIST), 73MENUITEM_FUNCTION(save_playlist, MENU_FUNC_USEPARAM, ID2P(LANG_SAVE_DYNAMIC_PLAYLIST),
68 (int(*)(void*))save_playlist_screen, 74 (int(*)(void*))save_playlist_screen,
69 NULL, NULL, Icon_NOICON); 75 NULL, NULL, Icon_NOICON);
@@ -78,5 +84,5 @@ MAKE_MENU(playlist_settings, ID2P(LANG_PLAYLISTS), NULL,
78 &recursive_dir_insert, &warn_on_erase); 84 &recursive_dir_insert, &warn_on_erase);
79MAKE_MENU(playlist_options, ID2P(LANG_PLAYLISTS), NULL, 85MAKE_MENU(playlist_options, ID2P(LANG_PLAYLISTS), NULL,
80 Icon_Playlist, 86 Icon_Playlist,
81 &create_playlist_item, &view_playlist, &save_playlist, &catalog); 87 &create_playlist_item, &view_cur_playlist, &save_playlist, &catalog);
82 88