mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
fix(timer): stop should return cmd
(#138)
This commit is contained in:
parent
2fd583c8ef
commit
4c1762413a
@ -162,9 +162,7 @@ func (m *Model) Start() tea.Cmd {
|
|||||||
|
|
||||||
// Stop pauses the timer. Has no effect if the timer has timed out.
|
// Stop pauses the timer. Has no effect if the timer has timed out.
|
||||||
func (m *Model) Stop() tea.Cmd {
|
func (m *Model) Stop() tea.Cmd {
|
||||||
return func() tea.Msg {
|
|
||||||
return m.startStop(false)
|
return m.startStop(false)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle stops the timer if it's running and starts it if it's stopped.
|
// Toggle stops the timer if it's running and starts it if it's stopped.
|
||||||
|
Loading…
Reference in New Issue
Block a user