squentin / gmusicbrowser

jukebox for large collections of music
http://gmusicbrowser.org
GNU General Public License v3.0
194 stars 42 forks source link

PlayFilter button doesn't start at the top of the playlist #217

Open morgannunan opened 3 years ago

morgannunan commented 3 years ago

I am working on a custom layout, and I added the PlayFilter button per the Layout documentation. However, there are two problems:

  1. It doesn't sort the playlist to match the filter. This isn't a huge deal, as I can manually match the sorting of both, I guess. However,
  2. The playback starts in the middle of the playlist somewhere. So when I click the button to play the filter, the player keeps playing whatever song was already playing (which is fine), but that song was in a list, and now that list has been replaced. When the player goes to the next song, which is now playing from the list set by the button, it doesn't start at the first song. Instead, it starts at some other, random place in the list and I can't figure out the logic of why it starts there.

Issue 1 might not be a bug, but issue 2 seems like one. Whatever is showing in the playlist, clicking the next button should start you at the top of the playlist.