SetMenuState changes what is shown in the dropdown
(state *MenuState)
| 104 | |
| 105 | // SetMenuState changes what is shown in the dropdown |
| 106 | func (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 |
| 114 | func (a *Application) MenuChanged() { |
no test coverage detected