Fixed enabling non-existent action groups

This commit is contained in:
Lucas Dower 2023-06-26 14:23:04 +01:00
parent 8fb58815b9
commit d67e4451e1

View File

@ -790,10 +790,12 @@ export class UI {
* Enable a specific action. * Enable a specific action.
*/ */
public enable(action: EAction) { public enable(action: EAction) {
this._forEachComponent(action, (component) => { if (action < EAction.MAX) {
component.setEnabled(true); this._forEachComponent(action, (component) => {
}); component.setEnabled(true);
this._getGroup(action).execButton?.setEnabled(true); });
this._getGroup(action).execButton?.setEnabled(true);
}
} }
/** /**