We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53dfc8 commit 663ec0eCopy full SHA for 663ec0e
src/Controls/src/Core/Handlers/Shell/Windows/ShellView.cs
@@ -122,7 +122,6 @@ internal void UpdateMenuItemSource()
122
{
123
_flyoutGrouping = newGrouping;
124
var newItems = IterateItems(newGrouping).ToList();
125
- var itemsCount = FlyoutItems.Count;
126
var newItemsSet = new HashSet<object>(newItems);
127
var flyoutItemsSet = new HashSet<object>(FlyoutItems);
128
@@ -133,7 +132,7 @@ internal void UpdateMenuItemSource()
133
132
if (!flyoutItemsSet.Contains(item))
134
135
// Use Insert when within bounds, otherwise Add
136
- if (index < itemsCount)
+ if (index < FlyoutItems.Count)
137
138
FlyoutItems.Insert(index, item);
139
}
0 commit comments