pasteAssignSync assigns mime data (only the first one!) to this node
(md mimedata.Mimes)
| 411 | |
| 412 | // pasteAssignSync assigns mime data (only the first one!) to this node |
| 413 | func (tr *Tree) pasteAssignSync(md mimedata.Mimes) { |
| 414 | sl, _ := tr.syncNodesFromMimeData(md) |
| 415 | if len(sl) == 0 { |
| 416 | return |
| 417 | } |
| 418 | tr.SyncNode.AsTree().CopyFrom(sl[0]) |
| 419 | tr.NeedsLayout() |
| 420 | tr.sendChangeEvent(nil) |
| 421 | } |
| 422 | |
| 423 | // pasteAtSync inserts object(s) from mime data at rel position to this node. |
| 424 | // If another item with the same name already exists, it will |
no test coverage detected