When the tracks tab is available, the genre tab is correctly expanded following the expected sequence (genre -> artist -> album -> track). But if the tracks tab is disabled, then the genre is not expanded even if artist and/or album tabs are enabled. Instead, it adds all tracks for that genre to the playlist.
This is because the expansion for genre is currently based on detecting only the tracks tab, ignoring the presence of the artists and/or albums tabs. This PR adds these conditions so the genre is correctly expanded in this case.
When the tracks tab is available, the genre tab is correctly expanded following the expected sequence (genre -> artist -> album -> track). But if the tracks tab is disabled, then the genre is not expanded even if artist and/or album tabs are enabled. Instead, it adds all tracks for that genre to the playlist.
This is because the expansion for genre is currently based on detecting only the tracks tab, ignoring the presence of the artists and/or albums tabs. This PR adds these conditions so the genre is correctly expanded in this case.