mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Improved settings reloading recent file menu item updating
This commit is contained in:
parent
c1f4466dd1
commit
ed444416f0
4 changed files with 27 additions and 9 deletions
|
@ -2131,8 +2131,9 @@ void WinBFWindow::RemoveMenuItem(BFMenu* item)
|
|||
WinBFMenu* aMenu = (WinBFMenu*) item;
|
||||
WinBFMenu* parentMenu = (WinBFMenu*) item->mParent;
|
||||
|
||||
//auto itr = mMenuIDMap.find(aMenu->mMenuId);
|
||||
//mMenuIDMap.erase(itr);
|
||||
if (parentMenu != NULL)
|
||||
parentMenu->mBFMenuList.Remove(item);
|
||||
|
||||
mMenuIDMap.Remove(aMenu->mMenuId);
|
||||
|
||||
::RemoveMenu(parentMenu->mMenu, aMenu->mMenuId, MF_BYCOMMAND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue