mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix: stopwatch.Start() (#707)
Signed-off-by: Bence Vidosits <bence.vidosits1@ibm.com> Co-authored-by: Bence Vidosits <bence.vidosits1@ibm.com>
This commit is contained in:
co-authored by
Bence Vidosits
parent
7ab08fb438
commit
1bdd4c6fb3
@@ -75,7 +75,7 @@ func (m Model) Init() tea.Cmd {
|
||||
|
||||
// Start starts the stopwatch.
|
||||
func (m Model) Start() tea.Cmd {
|
||||
return tea.Batch(func() tea.Msg {
|
||||
return tea.Sequence(func() tea.Msg {
|
||||
return StartStopMsg{ID: m.id, running: true}
|
||||
}, tick(m.id, m.tag, m.Interval))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user