mirror of https://github.com/BOINC/boinc.git
Ensured essential menu items remain enabled when client shuts down
[Manager] Short description of change Ensured that the "Simple view..." and "Other options..." menu items were always enabled even when the client is shutdown. Detailed description of the change (if necessary) N/A Fixes #3934
This commit is contained in:
parent
875f952fb6
commit
758dceb91f
|
@ -1111,6 +1111,17 @@ void CAdvancedFrame::OnMenuOpening( wxMenuEvent &event) {
|
|||
if (exitItem) {
|
||||
exitItem->Enable(true);
|
||||
}
|
||||
|
||||
// Specific menu items to keep enabled always (Switch to simple view and "other options")
|
||||
wxMenuItem* simpleViewItem = menu->FindChildItem(ID_CHANGEGUI, NULL);
|
||||
if (simpleViewItem) {
|
||||
simpleViewItem->Enable(true);
|
||||
}
|
||||
|
||||
wxMenuItem* otherOptionsItem = menu->FindChildItem(ID_OPTIONS, NULL);
|
||||
if (otherOptionsItem) {
|
||||
otherOptionsItem->Enable(true);
|
||||
}
|
||||
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CAdvancedFrame::OnMenuOpening - Function End"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue