mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-08 01:05:59 +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
|
@ -3,6 +3,7 @@ using System.Collections;
|
|||
using System.Text;
|
||||
using Beefy.widgets;
|
||||
using Beefy;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Beefy.sys
|
||||
{
|
||||
|
@ -22,10 +23,6 @@ namespace Beefy.sys
|
|||
public Event<MenuItemUpdateHandler> mOnMenuItemUpdate ~ _.Dispose();
|
||||
public List<SysMenu> mChildren ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public this()
|
||||
{
|
||||
}
|
||||
|
||||
public int ChildCount
|
||||
{
|
||||
get
|
||||
|
@ -135,6 +132,8 @@ namespace Beefy.sys
|
|||
{
|
||||
mWindow.mSysMenuMap.Remove((int)mNativeBFMenu);
|
||||
mWindow.DeleteMenuItem(mNativeBFMenu);
|
||||
if (mParent != null)
|
||||
mParent.mChildren.Remove(this);
|
||||
}
|
||||
|
||||
public void UpdateChildItems()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue