Resync resynchronizes the [Tree] relative to the [Tree.SyncNode] underlying nodes and triggers an update.
()
| 50 | // Resync resynchronizes the [Tree] relative to the [Tree.SyncNode] |
| 51 | // underlying nodes and triggers an update. |
| 52 | func (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. |
no test coverage detected