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

Method HasSelection

core/tree.go:671–673  ·  view source on GitHub ↗

HasSelection returns whether there are currently selected items.

()

Source from the content-addressed store, hash-verified

669
670// HasSelection returns whether there are currently selected items.
671func (tr *Tree) HasSelection() bool {
672 return len(tr.GetSelectedNodes()) > 0
673}
674
675// Select selects this node (if not already selected).
676// You must use this method to update global selection list.

Callers 4

contextMenuReadOnlyMethod · 0.95
contextMenuMethod · 0.95
VCSContextMenuMethod · 0.45
contextMenuMethod · 0.45

Calls 1

GetSelectedNodesMethod · 0.95

Tested by

no test coverage detected