stopAutoRefresh stops the auto-refresh timer.
()
| 130 | |
| 131 | // stopAutoRefresh stops the auto-refresh timer. |
| 132 | func (a *App) stopAutoRefresh() { |
| 133 | if a.autoRefreshCountdownStop != nil { |
| 134 | close(a.autoRefreshCountdownStop) |
| 135 | a.autoRefreshCountdownStop = nil |
| 136 | } |
| 137 | |
| 138 | a.autoRefreshRunning = false |
| 139 | a.autoRefreshCountdown = 0 |
| 140 | a.footer.UpdateAutoRefreshCountdown(0) |
| 141 | } |
no test coverage detected