summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-07-10 17:07:03 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2024-07-10 17:07:03 -0400
commitbdb5bf1511501bd8a1c478986041e6c9f26cae3e (patch)
treefdd1e33072fd9afb6a33e4e425eb3227733425c2
parent43dfa7d084bf6629d8513c3f69f8101609a9c565 (diff)
downloadrockbox-bdb5bf1511.tar.gz
rockbox-bdb5bf1511.zip
[Bugfix] playlist_viewer.c
had the conditional backwards changing display settings now reloads list Change-Id: Iea8f6bb1c7323b316a386135a6ccb192b214f6db
-rw-r--r--apps/playlist_viewer.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index d06a3f3df6..68fec4e153 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -231,7 +231,7 @@ static bool retrieve_track_metadata(struct mp3entry *id3, const char *filename,
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
/* try to get the id3 data from the database */
/* the database, doesn't store frequency, file size or codec (g4470) ChrisS*/
- if ((flags & METADATA_EXCLUDE_ID3_PATH) || !tagcache_fill_tags(id3, filename))
+ if (!(flags & METADATA_EXCLUDE_ID3_PATH) || !tagcache_fill_tags(id3, filename))
#endif
/* fall back to reading the file from disk */
{
@@ -718,10 +718,23 @@ static enum pv_onplay_result onplay_menu(int index)
ret = viewer.playlist ? PV_ONPLAY_UNCHANGED : PV_ONPLAY_SAVED;
break;
case 7:
+ {
+ int last_display = global_settings.playlist_viewer_track_display;
/* playlist viewer settings */
result = do_menu(&viewer_settings_menu, NULL, NULL, false);
- ret = (result == MENU_ATTACHED_USB) ? PV_ONPLAY_USB : PV_ONPLAY_UNCHANGED;
+
+
+ if (result == MENU_ATTACHED_USB)
+ ret = PV_ONPLAY_USB;
+ else
+ {
+ if (last_display != global_settings.playlist_viewer_track_display)
+ update_playlist(true);/* reload buffer */
+
+ ret = PV_ONPLAY_UNCHANGED;
+ }
break;
+ }
#ifdef HAVE_TAGCACHE
case 8:
ret = open_pictureflow(current_track);