summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChristian Rocha <christian@rocha.is>2020-06-22 15:11:48 -0400
committerChristian Muehlhaeuser <muesli@gmail.com>2020-10-05 13:47:16 +0200
commitfcaa65498477a7973801cdd67b2bd20f50170a69 (patch)
tree9dad310b82f486bd5e9574dba7d8432a1ecfaece /ui
parent0f508533ac161254774104fa66dce186b991c1af (diff)
Remove spinner custom message stuff which is no longer supported
Diffstat (limited to 'ui')
-rw-r--r--ui/stash.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/stash.go b/ui/stash.go
index d3ffcfc..70dded8 100644
--- a/ui/stash.go
+++ b/ui/stash.go
@@ -28,7 +28,6 @@ const (
// MSG
-type stashSpinnerTickMsg struct{}
type gotStashMsg []*charm.Markdown
type gotNewsMsg []*charm.Markdown
type fetchedMarkdownMsg *markdown
@@ -152,7 +151,6 @@ func stashInit(cc *charm.Client) (stashModel, tea.Cmd) {
s := spinner.NewModel()
s.Type = spinner.Dot
s.ForegroundColor = common.SpinnerColor
- s.CustomMsgFunc = func() tea.Msg { return stashSpinnerTickMsg{} }
p := paginator.NewModel()
p.Type = paginator.Dots
@@ -217,7 +215,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
m.state = stashStateReady
}
- case stashSpinnerTickMsg:
+ case spinner.TickMsg:
if m.state == stashStateInit || m.state == stashStateLoadingDocument {
m.spinner, cmd = spinner.Update(msg, m.spinner)
cmds = append(cmds, cmd)