Move skin global state to the WPS

This state is actually specific to the WPS and it makes more
sense to put it there.

Change-Id: I5dfee237fdcbae944806501ff3127a930820d68a
This commit is contained in:
Aidan MacDonald 2022-10-02 21:05:32 +01:00
parent 13da1ba785
commit 14fbefdf39
9 changed files with 59 additions and 66 deletions

View file

@ -56,7 +56,7 @@
#include "statusbar-skinned.h"
#include "playback.h"
#include "presets.h"
#include "skin_engine/wps_internals.h"
#include "wps.h" /* for wps_state... */
#if CONFIG_TUNER
@ -364,7 +364,9 @@ void radio_screen(void)
{
radio_load_presets(global_settings.fmr_file);
}
skin_get_global_state()->id3 = NULL;
/* TODO: Can this be moved somewhere else? */
get_wps_state()->id3 = NULL;
get_wps_state()->nid3 = NULL;
#ifdef HAVE_ALBUMART
radioart_init(true);
#endif