Added pause command
This commit is contained in:
@@ -11,3 +11,13 @@ func newTrackChangeCmd(nextTrack track) tea.Cmd {
|
||||
return trackChangeMsg{nextTrack}
|
||||
}
|
||||
}
|
||||
|
||||
type trackPauseMsg struct {
|
||||
isPaused bool
|
||||
}
|
||||
|
||||
func newTrackPauseCmd(isPaused bool) tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return trackPauseMsg{isPaused}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user