(component Enableable, state bool)
| 942 | } |
| 943 | |
| 944 | func updateEnableStatus(component Enableable, state bool) { |
| 945 | if state { |
| 946 | component.Enable() |
| 947 | } else { |
| 948 | component.Disable() |
| 949 | } |
| 950 | } |
| 951 | |
| 952 | func updateSetStatus(component Settable, state bool) { |
| 953 | if state { |
no test coverage detected