summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r--apps/gui/gwps.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 12e120f7d4..06e7ae4aed 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -65,8 +65,6 @@ struct wps_state wps_state;
65struct gui_wps gui_wps[NB_SCREENS]; 65struct gui_wps gui_wps[NB_SCREENS];
66static struct wps_data wps_datas[NB_SCREENS]; 66static struct wps_data wps_datas[NB_SCREENS];
67 67
68bool keys_locked = false;
69
70/* change the path to the current played track */ 68/* change the path to the current played track */
71static void wps_state_update_ctp(const char *path); 69static void wps_state_update_ctp(const char *path);
72 70
@@ -163,7 +161,7 @@ long gui_wps_show(void)
163 long next_big_refresh = current_tick + HZ / 5; 161 long next_big_refresh = current_tick + HZ / 5;
164 button = BUTTON_NONE; 162 button = BUTTON_NONE;
165 while (TIME_BEFORE(current_tick, next_big_refresh)) { 163 while (TIME_BEFORE(current_tick, next_big_refresh)) {
166 button = get_action(CONTEXT_WPS,TIMEOUT_NOBLOCK); 164 button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_NOBLOCK);
167 if (button != ACTION_NONE) { 165 if (button != ACTION_NONE) {
168 break; 166 break;
169 } 167 }
@@ -186,10 +184,10 @@ long gui_wps_show(void)
186 /* The peak meter is disabled 184 /* The peak meter is disabled
187 -> no additional screen updates needed */ 185 -> no additional screen updates needed */
188 else { 186 else {
189 button = get_action(CONTEXT_WPS,HZ/5); 187 button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,HZ/5);
190 } 188 }
191#else 189#else
192 button = get_action(CONTEXT_WPS,HZ/5); 190 button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,HZ/5);
193#endif 191#endif
194 192
195 /* Exit if audio has stopped playing. This can happen if using the 193 /* Exit if audio has stopped playing. This can happen if using the
@@ -426,13 +424,6 @@ long gui_wps_show(void)
426 restore = true; 424 restore = true;
427 break; 425 break;
428 426
429 /* key lock */
430 case ACTION_STD_KEYLOCK:
431 action_setsoftwarekeylock(ACTION_STD_KEYLOCK,true);
432 display_keylock_text(true);
433 restore = true;
434 break;
435
436 427
437#ifdef HAVE_QUICKSCREEN 428#ifdef HAVE_QUICKSCREEN
438 case ACTION_WPS_QUICKSCREEN: 429 case ACTION_WPS_QUICKSCREEN:
@@ -542,6 +533,9 @@ long gui_wps_show(void)
542 restore = true; 533 restore = true;
543 break; 534 break;
544 535
536 case ACTION_REDRAW: /* yes are locked, just redraw */
537 restore = true;
538 break;
545 case ACTION_NONE: /* Timeout */ 539 case ACTION_NONE: /* Timeout */
546 update_track = true; 540 update_track = true;
547 ffwd_rew(button); /* hopefully fix the ffw/rwd bug */ 541 ffwd_rew(button); /* hopefully fix the ffw/rwd bug */
@@ -599,10 +593,6 @@ long gui_wps_show(void)
599 ab_reset_markers(); 593 ab_reset_markers();
600#endif 594#endif
601 595
602 /* Keys can be locked when exiting, so either unlock here
603 or implement key locking in tree.c too */
604 keys_locked=false;
605
606 /* set dir browser to current playing song */ 596 /* set dir browser to current playing song */
607 if (global_settings.browse_current && 597 if (global_settings.browse_current &&
608 wps_state.current_track_path[0] != '\0') 598 wps_state.current_track_path[0] != '\0')