Skip to content

Commit beca607

Browse files
committed
improve menu
1 parent a58d8b0 commit beca607

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/RepoM.App/Controls/AcrylicMenuItem.cs

+7-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ public void ClearSubMenuOpened()
5656

5757
public void ClearItems()
5858
{
59-
if (Items.Count == 0)
59+
foreach (var item in Items)
6060
{
61-
return;
61+
if (item is AcrylicMenuItem ami)
62+
{
63+
ami.ClearClick();
64+
ami.ClearData();
65+
ami.ClearItems();
66+
}
6267
}
6368

6469
Items.Clear();

0 commit comments

Comments
 (0)