Avoid showing assert failures in debug builds if a menu item not applicable in the current state is selected and just show an error instead. Closes #18572. Closes https://github.com/wxWidgets/wxWidgets/pull/1694
Avoid showing assert failures in debug builds if a menu item not applicable in the current state is selected and just show an error instead. Closes #18572. Closes https://github.com/wxWidgets/wxWidgets/pull/1694