mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-18 22:24:17 +02:00
Remove spinner custom message stuff which is no longer supported
This commit is contained in:
parent
0f508533ac
commit
fcaa654984
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue