MCPcopy
hub / github.com/g3n/engine / SetEnabled

Method SetEnabled

gui/menu.go:662–666  ·  view source on GitHub ↗

SetEnabled sets the enabled state of this menu item

(enabled bool)

Source from the content-addressed store, hash-verified

660
661// SetEnabled sets the enabled state of this menu item
662func (mi *MenuItem) SetEnabled(enabled bool) {
663
664 mi.disabled = !enabled
665 mi.update()
666}
667
668// SetId sets this menu item string id which can be used to identify
669// the selected menu option.

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected