Fixed ParentMenuItems for WinUI

This commit is contained in:
ClemensFischer 2025-03-24 18:59:58 +01:00
parent 9242f26ea2
commit 3d4066af55
2 changed files with 7 additions and 3 deletions

View file

@ -83,7 +83,7 @@ namespace MapControl.UiTools
{
var index = 1;
foreach (var itemLayer in ParentMenuItems?
foreach (var itemLayer in ParentMenuItems
.OfType<MapOverlayMenuItem>()
.Select(item => item.MapLayer)
.Where(itemLayer => itemLayer != null))