summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index fb703062cd..6afed43213 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -859,11 +859,14 @@ long gui_wps_show(void)
859 case ACTION_WPS_CONTEXT: 859 case ACTION_WPS_CONTEXT:
860 { 860 {
861 gwps_leave_wps(); 861 gwps_leave_wps();
862 int retval = onplay(wps_state.id3->path,
863 FILE_ATTR_AUDIO, CONTEXT_WPS);
862 /* if music is stopped in the context menu we want to exit the wps */ 864 /* if music is stopped in the context menu we want to exit the wps */
863 if (onplay(wps_state.id3->path, 865 if (retval == ONPLAY_MAINMENU
864 FILE_ATTR_AUDIO, CONTEXT_WPS) == ONPLAY_MAINMENU
865 || !audio_status()) 866 || !audio_status())
866 return GO_TO_ROOT; 867 return GO_TO_ROOT;
868 else if (retval == ONPLAY_PLAYLIST)
869 return GO_TO_PLAYLIST_VIEWER;
867 restore = true; 870 restore = true;
868 } 871 }
869 break; 872 break;
@@ -1150,9 +1153,7 @@ long gui_wps_show(void)
1150 break; 1153 break;
1151 case ACTION_WPS_VIEW_PLAYLIST: 1154 case ACTION_WPS_VIEW_PLAYLIST:
1152 gwps_leave_wps(); 1155 gwps_leave_wps();
1153 if (playlist_viewer()) /* true if USB connected */ 1156 return GO_TO_PLAYLIST_VIEWER;
1154 return GO_TO_ROOT;
1155 restore = true;
1156 break; 1157 break;
1157 default: 1158 default:
1158 if(default_event_handler(button) == SYS_USB_CONNECTED) 1159 if(default_event_handler(button) == SYS_USB_CONNECTED)