Fix precedence of operations in a boolean expression in function UpdateMenus in WndMainWindow.cpp.

Bitwise OR has higher precedence than the ternary expression operators. This is likely unintended, since the main goal here is to either check or un-check the items.