Adding restrict command field for GKC

For menu commands on pieces, the “Restrict Commands” trait gives the option to Hide/Disable commands, however there is nothing similar for GKCs.

It would be useful to have the ability to add an optional conditional test to a GKC that must be satisfied to enable the GKC.
Note this is different from the current matching expression field, which limits the GKC applicability to various pieces - as opposed to wholesale disabling the GKC.

IF the GKC is disabled (i.e., does not match the optional conditional test), then the GKC would be grayed out and nothing would happen if you click on it (similar to how the current restrict command works).

1 Like

To be more specific, I am talking about GKCs on Toolbars - not the GKC trait on a unit…