TreeNodeSelected callback for node selection.
()
| 547 | |
| 548 | // TreeNodeSelected callback for node selection. |
| 549 | func (x *Xray) TreeNodeSelected() { |
| 550 | x.app.QueueUpdateDraw(func() { |
| 551 | n := x.GetCurrentNode() |
| 552 | if n != nil { |
| 553 | n.SetColor(x.app.Styles.Xray().CursorColor.Color()) |
| 554 | } |
| 555 | }) |
| 556 | } |
| 557 | |
| 558 | // TreeLoadFailed notifies the load failed. |
| 559 | func (x *Xray) TreeLoadFailed(err error) { |
nothing calls this directly
no test coverage detected