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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index b6a42769fe..afd7f3f2d0 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -888,10 +888,12 @@ long gui_wps_show(void)
888 switch(button) 888 switch(button)
889 { 889 {
890 case ACTION_WPS_CONTEXT: 890 case ACTION_WPS_CONTEXT:
891 case ACTION_WPS_HOTKEY:
891 { 892 {
893 bool hotkey = button == ACTION_WPS_HOTKEY;
892 gwps_leave_wps(); 894 gwps_leave_wps();
893 int retval = onplay(wps_state.id3->path, 895 int retval = onplay(wps_state.id3->path,
894 FILE_ATTR_AUDIO, CONTEXT_WPS); 896 FILE_ATTR_AUDIO, CONTEXT_WPS, hotkey);
895 /* if music is stopped in the context menu we want to exit the wps */ 897 /* if music is stopped in the context menu we want to exit the wps */
896 if (retval == ONPLAY_MAINMENU 898 if (retval == ONPLAY_MAINMENU
897 || !audio_status()) 899 || !audio_status())