ShowActiveProfile displays the active profile in the header.
(profileName string)
| 159 | |
| 160 | // ShowActiveProfile displays the active profile in the header. |
| 161 | func (h *Header) ShowActiveProfile(profileName string) { |
| 162 | h.mu.Lock() |
| 163 | h.isLoading = false |
| 164 | if h.loadingCancel != nil { |
| 165 | h.loadingCancel() |
| 166 | h.loadingCancel = nil |
| 167 | } |
| 168 | h.mu.Unlock() |
| 169 | h.StopLoading() |
| 170 | h.currentProfile = profileName // Store the profile name |
| 171 | h.SetText(h.formatProfileText(profileName)) |
| 172 | } |
| 173 | |
| 174 | // GetCurrentProfile returns the currently connected profile name. |
| 175 | func (h *Header) GetCurrentProfile() string { |
nothing calls this directly
no test coverage detected