mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[PR #632] [MERGED] Fix use of incorrect playlist index when playing from an associated track table #940
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#940
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/632
Author: @Utagai
Created: 10/23/2020
Status: ✅ Merged
Merged: 10/27/2020
Merged by: @Rigellute
Base:
master← Head:incorrect-playlist-index📝 Commits (1)
9fac7b7Fix use of incorrect playlist index when playing from an associated track table📊 Changes
3 files changed (+6 additions, -4 deletions)
View changed files
📝
src/app.rs(+2 -0)📝
src/handlers/playlist.rs(+1 -0)📝
src/handlers/track_table.rs(+3 -4)📄 Description
This closes #628.
We had a poor assumption here, that the selected playlist index was always guaranteed to be the playlist for which the loaded track table's context referred to. However, this is not always true. Take the following steps:
Step 5 will attempt to play a song on the selected playlist, which is the one you never activated, leading to an unexpected song being played back. Instead, we need a particular state for the activated playlist index, which this PR adds and uses instead. This avoids the problem described in the issue.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.