mirror of
https://github.com/ollama/ollama.git
synced 2025-07-13 02:07:25 +02:00
stop all spinners on progress stop
This commit is contained in:
@ -31,6 +31,12 @@ func NewProgress(w io.Writer) *Progress {
|
||||
}
|
||||
|
||||
func (p *Progress) Stop() bool {
|
||||
for _, state := range p.states {
|
||||
if spinner, ok := state.(*Spinner); ok {
|
||||
spinner.Stop()
|
||||
}
|
||||
}
|
||||
|
||||
if p.ticker != nil {
|
||||
p.ticker.Stop()
|
||||
p.ticker = nil
|
||||
|
Reference in New Issue
Block a user