File tree Expand file tree Collapse file tree
Lemon.ModuleNavigation.Avaloniaui/Core
Lemon.ModuleNavigation/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212using Lemon . ModuleNavigation . Avaloniaui . Regions ;
1313using Microsoft . Extensions . DependencyInjection ;
1414
15- /* Unmerged change from project 'Lemon.ModuleNavigation.Avaloniaui (net8.0)'
16- Added:
17- using Lemon;
18- using Lemon.ModuleNavigation;
19- using Lemon.ModuleNavigation.Avaloniaui;
20- using Lemon.ModuleNavigation.Avaloniaui.Extensions;
21- using Lemon.ModuleNavigation.Avaloniaui.Core;
22- */
23-
2415namespace Lemon . ModuleNavigation . Avaloniaui . Core
2516{
2617 public class NavigationExtension
Original file line number Diff line number Diff line change @@ -131,10 +131,7 @@ private bool IsRenderedOnAnyRegion(string moduleKey)
131131 {
132132 if ( ! _regionCache . IsEmpty )
133133 {
134- foreach ( var item in _regionCache )
135- {
136- return ( item . Key . ModuleKey == moduleKey ) ;
137- }
134+ return _regionCache . Select ( r => r . Key . ModuleKey ) . Contains ( moduleKey ) ;
138135 }
139136 return false ;
140137 }
You can’t perform that action at this time.
0 commit comments