| 217 | } |
| 218 | |
| 219 | void MenuItemVisitor::CommandListEntryEx::Enable(bool b) |
| 220 | { |
| 221 | if (!menu) { |
| 222 | enabled = b; |
| 223 | return; |
| 224 | } |
| 225 | |
| 226 | // LL: Refresh from real state as we can get out of sync on the |
| 227 | // Mac due to its reluctance to enable menus when in a modal |
| 228 | // state. |
| 229 | enabled = menu->IsEnabled(id); |
| 230 | |
| 231 | // Only enabled if needed |
| 232 | if (enabled != b) { |
| 233 | menu->Enable(id, b); |
| 234 | enabled = menu->IsEnabled(id); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | void MenuItemVisitor::CommandListEntryEx::EnableMultiItem(bool b) |
| 239 | { |
no test coverage detected