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

Method Resync

core/treesync.go:52–56  ·  view source on GitHub ↗

Resync resynchronizes the [Tree] relative to the [Tree.SyncNode] underlying nodes and triggers an update.

()

Source from the content-addressed store, hash-verified

50// Resync resynchronizes the [Tree] relative to the [Tree.SyncNode]
51// underlying nodes and triggers an update.
52func (tr *Tree) Resync() {
53 tvIndex := tr.viewIndex
54 tr.syncToSrc(&tvIndex, false, 0)
55 tr.Update()
56}
57
58// syncToSrc updates the view tree to match the sync tree, using
59// ConfigChildren to maximally preserve existing tree elements.

Callers 1

sendChangeEventReSyncMethod · 0.80

Calls 2

syncToSrcMethod · 0.95
UpdateMethod · 0.65

Tested by

no test coverage detected