summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c29
1 files changed, 17 insertions, 12 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 7044369ed5..a39f2ba30c 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -578,8 +578,6 @@ static bool menu(void)
578 status_set_param(false); 578 status_set_param(false);
579#endif 579#endif
580 580
581 wps_display(id3);
582 wps_refresh(id3, 0, WPS_REFRESH_ALL);
583 return false; 581 return false;
584} 582}
585 583
@@ -627,6 +625,7 @@ int wps_show(void)
627 bool ignore_keyup = true; 625 bool ignore_keyup = true;
628 bool restore = false; 626 bool restore = false;
629 bool exit = false; 627 bool exit = false;
628 bool update_track = false;
630 629
631 id3 = NULL; 630 id3 = NULL;
632 current_track_path[0] = '\0'; 631 current_track_path[0] = '\0';
@@ -902,6 +901,7 @@ int wps_show(void)
902 if (menu()) 901 if (menu())
903 return SYS_USB_CONNECTED; 902 return SYS_USB_CONNECTED;
904 903
904 update_track = true;
905 restore = true; 905 restore = true;
906 break; 906 break;
907 907
@@ -939,18 +939,24 @@ int wps_show(void)
939 return SYS_USB_CONNECTED; 939 return SYS_USB_CONNECTED;
940 940
941 case BUTTON_NONE: /* Timeout */ 941 case BUTTON_NONE: /* Timeout */
942 if (update()) 942 update_track = true;
943 {
944 /* set dir browser to current playing song */
945 if (global_settings.browse_current &&
946 current_track_path[0] != '\0')
947 set_current_file(current_track_path);
948
949 return 0;
950 }
951 break; 943 break;
952 } 944 }
953 945
946 if (update_track)
947 {
948 if (update())
949 {
950 /* set dir browser to current playing song */
951 if (global_settings.browse_current &&
952 current_track_path[0] != '\0')
953 set_current_file(current_track_path);
954
955 return 0;
956 }
957 update_track = false;
958 }
959
954 if (exit) { 960 if (exit) {
955#ifdef HAVE_LCD_CHARCELLS 961#ifdef HAVE_LCD_CHARCELLS
956 status_set_record(false); 962 status_set_record(false);
@@ -975,7 +981,6 @@ int wps_show(void)
975 return 0; 981 return 0;
976 } 982 }
977 983
978
979 if ( button ) 984 if ( button )
980 ata_spin(); 985 ata_spin();
981 986