From 178560f495b0b4c0cf3249c07ee81e94c001c312 Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Thu, 8 Dec 2022 16:52:54 +0200 Subject: Treat cue file as folder for next/prev folder action Do not get stuck if it's the only cue file in folder Change-Id: Ibb1a406ff030f945e4234fbd1ece747d1e5a0c44 --- apps/gui/wps.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/gui/wps.c') diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 3cda2fb44a..cef232c6fc 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -857,7 +857,7 @@ long gui_wps_show(void) case ACTION_WPS_SEEKFWD: if (current_tick -last_right < HZ) { - if (state->id3->cuesheet) + if (state->id3->cuesheet && playlist_check(1)) { audio_next(); } @@ -875,10 +875,9 @@ long gui_wps_show(void) case ACTION_WPS_SEEKBACK: if (current_tick - last_left < HZ) { - if (state->id3->cuesheet) + if (state->id3->cuesheet && playlist_check(-1)) { - audio_pre_ff_rewind(); - audio_ff_rewind(0); + audio_prev(); } else { -- cgit v1.2.3