aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* state: persist the queue and pick up where playback stoppedsalmonik6 days1-0/+200
The queue, its shuffle order and whether playback was running are written to ~/.local/state/rsplayer/state.json whenever they change, and on shutdown, then restored at daemon start. Tracks that disappeared from disk are dropped instead of failing on play. `rsp resume`/`rsp toggle` now start the restored track when nothing is loaded into the engine yet, which is the state right after a restart with a queue that was paused.