summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-11 10:49:45 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-11 10:49:45 +0100
commitfe73d75e7485019a6206c4aa7e414a93bc70c05f (patch)
treef6f45aa4c306eabeacb42cc4a1ec6d8ee4a002ed /apps
parent2d4bf62032cf1d793abfbe73942ec050161844c1 (diff)
playlist_viewer: Reset icon callback after leaving the playlist viewer settings.
This fixes that the playlist viewer still shows the icons after changing the playlist viewer specific show_icons value until re-opened. Change-Id: I42f287bcf02b27f0255dc157560c2e6575307eb6
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_viewer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 7eed42c137..6a20bf1aac 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -824,6 +824,11 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
viewer.selected_track = viewer.num_tracks-1;
dirty = true;
}
+ /* the show_icons option in the playlist viewer settings
+ * menu might have changed */
+ gui_synclist_set_icon_callback(&playlist_lists,
+ global_settings.playlist_viewer_icons?
+ &playlist_callback_icons:NULL);
gui_synclist_draw(&playlist_lists);
break;
}