From 758dceb91f927b8c93644472443361c335ac2e32 Mon Sep 17 00:00:00 2001 From: Marcus Belcastro Date: Mon, 3 Aug 2020 05:19:56 +1000 Subject: [PATCH] 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 --- clientgui/AdvancedFrame.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 8f9d238c89..af354c11e2 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -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")); }