Skip to content

Conversation

@teamcons
Copy link
Contributor

@teamcons teamcons commented Jun 9, 2025

fix #792

approach: Just like restoring Queue, restoring last played is playback's problem

We remember the URI of last played track. If it still exists, we search for it in restored queue, retrieve the object and slam it in currently playing
Next and Previous go from the restored "last played". I thought i had to update playback_position but it does not seem needed.
I had issues with the liststore to retrieve position, so i reused the code for searching. This could be improved upon.

NowPlayingView caused issues. The binds for labels and image were very unreliable, so this has been changed to simply setting the variables on signal.

@teamcons teamcons marked this pull request as ready for review June 26, 2025 21:28
@danirabbit danirabbit mentioned this pull request Aug 13, 2025
3 tasks
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty clean to me! Just a couple small comments and I'll build and test and we can get this merged. Nice work!

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great and works as expected. Nice job! 🚀

@danirabbit danirabbit merged commit beced64 into elementary:main Aug 15, 2025
3 checks passed
@teamcons teamcons deleted the restore-last-played branch August 15, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore last queue

3 participants