mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #933] [MERGED] feat: remember Tracks context in Currently Playing page #1870
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1870
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/aome510/spotify-player/pull/933
Author: @aome510
Created: 2/18/2026
Status: ✅ Merged
Merged: 2/18/2026
Merged by: @aome510
Base:
master← Head:tracks-currently-playing📝 Commits (2)
44111fcfeat: remember Tracks context in Currently Playing page4f50078fmt📊 Changes
5 files changed (+45 additions, -5 deletions)
View changed files
📝
spotify_player/src/client/handlers.rs(+8 -1)📝
spotify_player/src/event/mod.rs(+8 -1)📝
spotify_player/src/event/window.rs(+21 -0)📝
spotify_player/src/state/ui/mod.rs(+5 -0)📝
spotify_player/src/state/ui/page.rs(+3 -3)📄 Description
Add support for preserving Tracks context (Top Tracks, Recently Played, Liked Tracks) when navigating to the Currently Playing page.
Since Spotify's native API only recognizes Playlist, Album, Artist, and Show as playback contexts, custom Tracks contexts were previously lost when viewing the Currently Playing page. This change tracks the currently playing Tracks context in
UIStateand displays it appropriately.Resolves #825
Changes
currently_playing_tracks_idfield toUIStateto store the active Tracks contextContextPageType::CurrentPlayingto accept optionalTracksId, indicating the currently playing Tracks contextcurrently_playing_tracks_id:This allows users to see and navigate the Tracks context list when viewing the Currently Playing page after playing from these contexts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.