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:
Marcus Belcastro 2020-08-03 05:19:56 +10:00
parent 875f952fb6
commit 758dceb91f
1 changed files with 11 additions and 0 deletions

View File

@ -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"));
}