After a restart the queue is restored with the right current track, but playback does not autostart -- the audio engine has nothing loaded and the play state is Stopped. Space (TogglePlay) called unpause() and r (RestartTrack) called restart(), both of which error out with "not playing" because no source is loaded; only switching to the queue and pressing Enter (SetCurrent) actually started anything. Make the resume-style controls load the current queue track when the player is idle: TogglePlay now plays the current track on any non- playing/paused state, and RestartTrack starts the current track when nothing is loaded (and still restarts the loaded one otherwise). Both route through the same play() path SetCurrent uses, and are a no-op when the queue is empty. Paused/Playing behaviour is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.lock | ||
| Cargo.toml | ||
| build.rs | ||