Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Selected song after removing an album from the playlist #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Selected song after removing an album from the playlist #2

wants to merge 1 commit into from

Conversation

bfncs
Copy link

@bfncs bfncs commented Mar 30, 2013

Hi there,

I found a small problem in your otherwise very nice application.

Steps to replicate:

  1. Open application.
  2. Add both albums to the playlist.
  3. Start playing.
  4. Remove the played album from the playlist.
  5. Start playing again.

What is played now is still the song that has been playing when the album was removed from the playlist instead of the currently selected song.

I added the tiny fix needed to make this working and the corresponding test case. It might be even more concise to have a player.stopped variable to handle this, but I think this is sufficient for now.

With kind regards,
Marc

Review on Reviewable

* Don't continue to play the last played song after removing it from the
  playlist.
* Added a test to ensure this.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant