MGR: Fix taskbar icon menu on Windows

This commit is contained in:
Charlie Fenton 2013-11-05 05:47:27 -08:00
parent 4192a32ddd
commit a3c96339bb
1 changed files with 10 additions and 11 deletions

View File

@ -586,10 +586,10 @@ 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);
font = pMenuItem->GetFont();
font.SetPointSize(8);
if (pMenuItem->GetId() != ID_OPENBOINCMANAGER) {
font.SetWeight(wxFONTWEIGHT_NORMAL);
} else {
@ -599,7 +599,6 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) {
pMenu->Insert(loc, pMenuItem);
}
}
#endif
// Prevent recursive entry of CMainDocument::RequestRPC()