From 7a2ea7be78b85c3303e1d6170ba429aef0a3d309 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Thu, 5 Jan 2017 02:35:31 +0200 Subject: [PATCH] MGR: Enable always 'Advance View' menu item in Simple mode. 'Advance view' item is enabled always even if Manager doesn't connected to client. As requested in issue 1748. --- clientgui/sg_BoincSimpleFrame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clientgui/sg_BoincSimpleFrame.cpp b/clientgui/sg_BoincSimpleFrame.cpp index 8aafea97df..29c38408fc 100644 --- a/clientgui/sg_BoincSimpleFrame.cpp +++ b/clientgui/sg_BoincSimpleFrame.cpp @@ -390,6 +390,7 @@ void CSimpleFrame::OnMenuOpening( wxMenuEvent &event) { CMainDocument* pDoc = wxGetApp().GetDocument(); wxMenu* menuFile = NULL; wxMenu* menuHelp = NULL; + wxMenu* menuChangeGUI = NULL; wxASSERT(pDoc); @@ -398,13 +399,14 @@ void CSimpleFrame::OnMenuOpening( wxMenuEvent &event) { menu->FindItem(ID_CLOSEWINDOW, &menuFile); menu->FindItem(ID_HELPBOINC, &menuHelp); + menu->FindItem(ID_CHANGEGUI, &menuChangeGUI); size_t numItems = menu->GetMenuItemCount(); for (size_t pos = 0; pos < numItems; ++pos) { wxMenuItem * item = menu->FindItemByPosition(pos); - if ((menu == menuFile) || (menu == menuHelp)) { + if ((menu == menuFile) || (menu == menuHelp) || (menu == menuChangeGUI)) { // Always enable all items in File menu or Help menu: // ID_CLOSEWINDOW, wxID_EXIT, ID_HELPBOINC, ID_HELPBOINCMANAGER, - // ID_HELPBOINCWEBSITE, wxID_ABOUT + // ID_HELPBOINCWEBSITE, wxID_ABOUT, ID_CHANGEGUI item->Enable(true); } else { // Disable other menu items if not connected to client