| 981 | |
| 982 | |
| 983 | void Script::AllowMainWindow(bool aAllow) |
| 984 | { |
| 985 | if (g_AllowMainWindow == aAllow) |
| 986 | return; |
| 987 | g_AllowMainWindow = aAllow; |
| 988 | EnableOrDisableViewMenuItems(GetMenu(g_hWnd) |
| 989 | , aAllow ? MF_ENABLED : MF_DISABLED | MF_GRAYED); |
| 990 | mTrayMenu->EnableStandardOpenItem(aAllow); |
| 991 | } |
| 992 | |
| 993 | void Script::EnableOrDisableViewMenuItems(HMENU aMenu, UINT aFlags) |
| 994 | { |
no test coverage detected