From 79accb5bb0c19d3af5e5b571e4693ca5d3c8ca22 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 22 Aug 2017 09:54:49 -0400 Subject: [PATCH] core/playlists/system: Load favorites and hidden playlists first If we don't, then the Collection playlist will include hidden tracks when it initializes. Fixes #109: Hidden tracks showing up in Collection Signed-off-by: Anna Schumaker --- core/playlists/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/playlists/system.c b/core/playlists/system.c index 0706d2c4..f730c4f4 100644 --- a/core/playlists/system.c +++ b/core/playlists/system.c @@ -405,6 +405,8 @@ void pl_system_init(void) struct playlist *playlist; unsigned int i; + idle_schedule(IDLE_SYNC, __sys_pl_load_new, NULL); + for (i = 0; i < SYS_PL_NUM_PLAYLISTS; i++) { playlist = pl_system_get(i); @@ -424,8 +426,6 @@ void pl_system_init(void) break; } } - - idle_schedule(IDLE_SYNC, __sys_pl_load_new, NULL); } void pl_system_deinit()