diff options
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index b7707cdd0d..ad9fce7a8f 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -796,3 +796,18 @@ void gui_sync_wps_init(void) | |||
796 | unload_remote_wps_backdrop(); | 796 | unload_remote_wps_backdrop(); |
797 | #endif | 797 | #endif |
798 | } | 798 | } |
799 | |||
800 | #ifdef HAVE_ALBUMART | ||
801 | /* Returns true if at least one of the gui_wps screens has an album art | ||
802 | tag in its wps structure */ | ||
803 | bool gui_sync_wps_uses_albumart(void) | ||
804 | { | ||
805 | int i; | ||
806 | FOR_NB_SCREENS(i) { | ||
807 | struct gui_wps *gwps = &gui_wps[i]; | ||
808 | if (gwps->data && (gwps->data->wps_uses_albumart != WPS_ALBUMART_NONE)) | ||
809 | return true; | ||
810 | } | ||
811 | return false; | ||
812 | } | ||
813 | #endif | ||