MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / StopLoading

Method StopLoading

internal/ui/components/header.go:81–93  ·  view source on GitHub ↗

StopLoading stops the loading animation.

()

Source from the content-addressed store, hash-verified

79
80// StopLoading stops the loading animation.
81func (h *Header) StopLoading() {
82 h.mu.Lock()
83 if !h.isLoading {
84 h.mu.Unlock()
85 return
86 }
87 h.isLoading = false
88 if h.loadingCancel != nil {
89 h.loadingCancel()
90 h.loadingCancel = nil
91 }
92 h.mu.Unlock()
93}
94
95// IsLoading reports whether the header is currently showing a loading state.
96func (h *Header) IsLoading() bool {

Callers 4

ShowSuccessMethod · 0.95
ShowErrorMethod · 0.95
ShowWarningMethod · 0.95
ShowActiveProfileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected