MCPcopy
hub / github.com/basecamp/once / checkForUpdates

Method checkForUpdates

internal/ui/logs.go:185–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185func (m *Logs) checkForUpdates() {
186 version := m.streamer.Version()
187 if version != m.lastVersion || m.filterText != m.lastFilterText {
188 m.rebuildContent()
189 }
190}
191
192func (m *Logs) rebuildContent() {
193 m.wasAtBottom = m.viewport.AtBottom() || m.lastVersion == 0

Callers 1

UpdateMethod · 0.95

Calls 2

rebuildContentMethod · 0.95
VersionMethod · 0.80

Tested by

no test coverage detected