summaryrefslogtreecommitdiff
path: root/apps/menus/playback_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/playback_menu.c')
-rw-r--r--apps/menus/playback_menu.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c
index 5f9479fae3..fe319d6027 100644
--- a/apps/menus/playback_menu.c
+++ b/apps/menus/playback_menu.c
@@ -201,6 +201,28 @@ MENUITEM_SETTING(pause_rewind, &global_settings.pause_rewind, NULL);
201MENUITEM_SETTING(play_frequency, &global_settings.play_frequency, 201MENUITEM_SETTING(play_frequency, &global_settings.play_frequency,
202 playback_callback); 202 playback_callback);
203#endif 203#endif
204#ifdef HAVE_ALBUMART
205static int albumart_callback(int action,
206 const struct menu_item_ex *this_item,
207 struct gui_synclist *this_list)
208{
209 (void)this_item;
210 (void)this_list;
211 static int initial_aa_setting;
212 switch (action)
213 {
214 case ACTION_ENTER_MENUITEM:
215 initial_aa_setting = global_settings.album_art;
216 break;
217 case ACTION_EXIT_MENUITEM: /* on exit */
218 if (initial_aa_setting != global_settings.album_art)
219 set_albumart_mode(global_settings.album_art);
220 }
221 return action;
222}
223MENUITEM_SETTING(album_art, &global_settings.album_art,
224 albumart_callback);
225#endif
204 226
205MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0, 227MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0,
206 Icon_Playback_menu, 228 Icon_Playback_menu,
@@ -231,6 +253,9 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0,
231#ifdef HAVE_PLAY_FREQ 253#ifdef HAVE_PLAY_FREQ
232 ,&play_frequency 254 ,&play_frequency
233#endif 255#endif
256#ifdef HAVE_ALBUMART
257 ,&album_art
258#endif
234 ); 259 );
235 260
236static int playback_callback(int action, 261static int playback_callback(int action,