summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 01ba3a072d..5124375490 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -60,6 +60,7 @@
60#include "wps.h" 60#include "wps.h"
61#include "bookmark.h" 61#include "bookmark.h"
62#include "playlist.h" 62#include "playlist.h"
63#include "playlist_viewer.h"
63#include "menus/exported_menus.h" 64#include "menus/exported_menus.h"
64#ifdef HAVE_RTC_ALARM 65#ifdef HAVE_RTC_ALARM
65#include "rtc.h" 66#include "rtc.h"
@@ -313,6 +314,20 @@ static int radio(void* param)
313} 314}
314#endif 315#endif
315 316
317static int playlist_view(void * param)
318{
319 (void)param;
320 switch (playlist_viewer())
321 {
322 case PLAYLIST_VIEWER_MAINMENU:
323 case PLAYLIST_VIEWER_USB:
324 return GO_TO_ROOT;
325 case PLAYLIST_VIEWER_OK:
326 return GO_TO_PREVIOUS;
327 }
328 return GO_TO_PREVIOUS;
329}
330
316static int load_bmarks(void* param) 331static int load_bmarks(void* param)
317{ 332{
318 (void)param; 333 (void)param;
@@ -381,7 +396,8 @@ static const struct root_items items[] = {
381#endif 396#endif
382 397
383 [GO_TO_RECENTBMARKS] = { load_bmarks, NULL, &bookmark_settings_menu }, 398 [GO_TO_RECENTBMARKS] = { load_bmarks, NULL, &bookmark_settings_menu },
384 [GO_TO_BROWSEPLUGINS] = { plugins_menu, NULL, NULL }, 399 [GO_TO_BROWSEPLUGINS] = { plugins_menu, NULL, NULL },
400 [GO_TO_PLAYLIST_VIEWER] = { playlist_view, NULL, NULL },
385 401
386}; 402};
387static const int nb_items = sizeof(items)/sizeof(*items); 403static const int nb_items = sizeof(items)/sizeof(*items);