1
0
Fork 0
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:
Brian Fiete 2023-06-01 08:00:16 -04:00
parent c1f4466dd1
commit ed444416f0
4 changed files with 27 additions and 9 deletions

View file

@ -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()