mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-24 22:54:39 +03:00
Don't return the current frame in TickMsg
This commit is contained in:
parent
084d0acefd
commit
75df6b96a1
@ -111,7 +111,6 @@ func NewModel() Model {
|
|||||||
// TickMsg indicates that the timer has ticked and we should render a frame.
|
// TickMsg indicates that the timer has ticked and we should render a frame.
|
||||||
type TickMsg struct {
|
type TickMsg struct {
|
||||||
Time time.Time
|
Time time.Time
|
||||||
Frame string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is the Tea update function. This will advance the spinner one frame
|
// Update is the Tea update function. This will advance the spinner one frame
|
||||||
@ -158,7 +157,6 @@ func Tick(m Model) tea.Cmd {
|
|||||||
return tea.Tick(m.FPS, func(t time.Time) tea.Msg {
|
return tea.Tick(m.FPS, func(t time.Time) tea.Msg {
|
||||||
return TickMsg{
|
return TickMsg{
|
||||||
Time: t,
|
Time: t,
|
||||||
Frame: m.Frames[m.frame],
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user