MCPcopy Create free account
hub / github.com/caseymrm/menuet / SetMenuState

Method SetMenuState

menuet.go:106–111  ·  view source on GitHub ↗

SetMenuState changes what is shown in the dropdown

(state *MenuState)

Source from the content-addressed store, hash-verified

104
105// SetMenuState changes what is shown in the dropdown
106func (a *Application) SetMenuState(state *MenuState) {
107 if reflect.DeepEqual(a.currentState, state) {
108 return
109 }
110 go a.sendState(state)
111}
112
113// MenuChanged refreshes any open menus
114func (a *Application) MenuChanged() {

Callers 7

helloClockFunction · 0.80
mainFunction · 0.80
setWeatherFunction · 0.80
handleTopLevelClickFunction · 0.80
clickHandlerMenuFunction · 0.80
changeTitleFunction · 0.80
mainFunction · 0.80

Calls 1

sendStateMethod · 0.95

Tested by

no test coverage detected