selectedSyncNodes returns a slice of the currently selected sync source nodes in the entire tree
()
| 111 | // selectedSyncNodes returns a slice of the currently selected |
| 112 | // sync source nodes in the entire tree |
| 113 | func (tr *Tree) selectedSyncNodes() []tree.Node { |
| 114 | var res []tree.Node |
| 115 | sl := tr.GetSelectedNodes() |
| 116 | for _, v := range sl { |
| 117 | res = append(res, v.AsCoreTree().SyncNode) |
| 118 | } |
| 119 | return res |
| 120 | } |
| 121 | |
| 122 | // FindSyncNode returns the [Tree] node for the corresponding given |
| 123 | // source [tree.Node] in [Tree.SyncNode] or nil if not found. |
no test coverage detected