Stop issue playlist continuing when disabling AutoPlaylist

If you use the "music" playlist on boot, it'll keep it going even when you manually override to something else.  This seems to fix this condition.
This commit is contained in:
Troy
2024-08-14 11:53:35 -04:00
committed by GitHub
parent 5610548652
commit 9e65ab3be4

View File

@@ -303,6 +303,7 @@ class AutoPlaylistUsermod : public Usermod {
#ifdef USERMOD_AUTO_PLAYLIST_DEBUG
USER_PRINTF("AutoPlaylist: disable due to manual change of playlist from %u to %d, preset:%u\n", lastAutoPlaylist, currentPlaylist, currentPreset);
#endif
suspendPlaylist();
functionality_enabled = false;
} else if (currentPlaylist == musicPlaylist) {
#ifdef USERMOD_AUTO_PLAYLIST_DEBUG