MCPcopy Create free account
hub / github.com/cogentcore/core / TailCheck

Method TailCheck

tensor/cmd/ttail/term.go:280–292  ·  view source on GitHub ↗

TailCheck does tail update check -- returns true if updated

()

Source from the content-addressed store, hash-verified

278
279// TailCheck does tail update check -- returns true if updated
280func (tm *Term) TailCheck() bool {
281 if !tm.Tail {
282 return false
283 }
284 tm.Mu.Lock()
285 update := TheFiles.CheckUpdates()
286 tm.Mu.Unlock()
287 if !update {
288 return false
289 }
290 tm.Draw()
291 return true
292}
293
294// DrawFile draws one file, starting at given y offset
295func (tm *Term) DrawFile(fl *File, sty int) {

Callers 1

mainFunction · 0.80

Calls 4

DrawMethod · 0.95
CheckUpdatesMethod · 0.80
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected