mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[GH-ISSUE #121] Restore state from where the program stopped last time (autoplay track/playlist) #90
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#90
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?
Originally created by @pythonhacker on GitHub (Aug 19, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/121
If I stopped psst when I was playing a track, I would like it to auto-play the same track when I restart psst. Similar to saving volumne and other parameters, can we save the most recently played track in config and restore that state once the program is relaunched ?
Let me know if this makes sense. I will be happy to implement this.
@jpochyla commented on GitHub (Aug 20, 2021):
This is definitely wanted. I'd like to as well save and restore the current route. I will eventually get to it, but in case you'd like to tackle this yourself, I'm happy to assist.
@JuliDi commented on GitHub (Aug 21, 2021):
After looking into this issue, it looks to me like you can't easily intercept the
QUIT_APPcommand because it is handled by druid.It seems like the delegate's command handler
github.com/jpochyla/psst@7c2152d559/psst-gui/src/delegate.rs (L53)doesn't receive that command. (In fact, I also tried adding theevent()function and couldn't even get any of the close-window events.)Is there a way to execute some code when the application is quit?
@jpochyla commented on GitHub (Aug 24, 2021):
I think we can re-save the config after every route change.
@JuliDi commented on GitHub (Aug 24, 2021):
So would the route or the playback be serialized and saved to file?
@jpochyla commented on GitHub (Aug 28, 2021):
Current route is now stored in config and restored on startup as of
6c31eb3.@ndbroadbent commented on GitHub (Aug 30, 2023):
I noticed that the route is saved and restored (e.g. the playlist page), but I would also like it to save/restore the currently playing song. When I quit and reopen Psst, I would like it to bring up the previous song in the paused state, so I can hit space bar to continue playing. (This is how the official Spotify client works.) Would that be difficult to add?