From fe73d75e7485019a6206c4aa7e414a93bc70c05f Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 11 Jan 2014 10:49:45 +0100 Subject: 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 --- apps/playlist_viewer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') 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; } -- cgit v1.2.3