Skip to content

Commit

Permalink
- sync menu bar items when collection changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Sep 27, 2022
1 parent 349cd75 commit 4ebd2bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controls/src/Core/MenuBarTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public MenuBarTracker(Element parent, string handlerProperty)

void OnMenuBarItemCollectionChanged(object sender, EventArgs e)
{
_menuBar.SyncMenuBarItemsFromPages(ToolbarItems);

if (_handlerProperty != null)
{
_parent?.Handler?.UpdateValue(_handlerProperty);
Expand Down

0 comments on commit 4ebd2bd

Please sign in to comment.