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,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