From fcaa65498477a7973801cdd67b2bd20f50170a69 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 22 Jun 2020 15:11:48 -0400 Subject: [PATCH] Remove spinner custom message stuff which is no longer supported --- ui/stash.go | 4 +--- 1 file changed, 1 insertion(+), 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)