[GH-ISSUE #944] Pause playback on app quit #1501

Open
opened 2026-03-14 15:17:17 +03:00 by kerem · 0 comments
Owner

Originally created by @pedromarquetti on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/944

Is your feature already implemented in the latest master?
No, it is a minor feature request

Is your feature request related to a problem? Please describe.
When closing the TUI (q), playback should be paused. If a song is playing and i close the app, then reopen it, the song does not resume where it left off.

Describe the solution you'd like
when quitting the app, maybe it should send a pause command

Describe alternatives you've considered
tried doing

 match command {
        Command::Quit => {
            client_pub.send(ClientRequest::Player(PlayerRequest::Pause))?;
            ui.is_running = false;
        }

but didn't work, i don't know if there's a more correct way of doing it tho.

Originally created by @pedromarquetti on GitHub (Mar 8, 2026). Original GitHub issue: https://github.com/aome510/spotify-player/issues/944 **Is your feature already implemented in the latest `master`?** No, it is a minor feature request **Is your feature request related to a problem? Please describe.** When closing the TUI (q), playback should be paused. If a song is playing and i close the app, then reopen it, the song does not resume where it left off. **Describe the solution you'd like** when quitting the app, maybe it should send a pause command **Describe alternatives you've considered** tried doing ```rust match command { Command::Quit => { client_pub.send(ClientRequest::Player(PlayerRequest::Pause))?; ui.is_running = false; } ``` but didn't work, i don't know if there's a more correct way of doing it tho.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1501
No description provided.