From a3c96339bb683834af18b7b1a4437785a49351aa Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 5 Nov 2013 05:47:27 -0800 Subject: [PATCH] MGR: Fix taskbar icon menu on Windows --- clientgui/BOINCTaskBar.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 1f8d1f17c3..46239558a2 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -586,19 +586,18 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) { // a bit. It shouldn't hurt other platforms. for (loc = 0; loc < pMenu->GetMenuItemCount(); loc++) { pMenuItem = pMenu->FindItemByPosition(loc); - if (!pMenuItem->IsSeparator() && pMenuItem->IsEnabled()) { - pMenu->Remove(pMenuItem); + pMenu->Remove(pMenuItem); - font = pMenuItem->GetFont(); - if (pMenuItem->GetId() != ID_OPENBOINCMANAGER) { - font.SetWeight(wxFONTWEIGHT_NORMAL); - } else { - font.SetWeight(wxFONTWEIGHT_BOLD); - } - pMenuItem->SetFont(font); - - pMenu->Insert(loc, pMenuItem); + font = pMenuItem->GetFont(); + font.SetPointSize(8); + if (pMenuItem->GetId() != ID_OPENBOINCMANAGER) { + font.SetWeight(wxFONTWEIGHT_NORMAL); + } else { + font.SetWeight(wxFONTWEIGHT_BOLD); } + pMenuItem->SetFont(font); + + pMenu->Insert(loc, pMenuItem); } #endif