File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/Files.App/ViewModels/UserControls Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ public void UpdateSidebarSelectedItemFromArgs(string? arg)
113113 }
114114
115115 item = filteredItems . FirstOrDefault ( x => x . Path . Equals ( value , StringComparison . OrdinalIgnoreCase ) ) ;
116- item ??= filteredItems . FirstOrDefault ( x => x . Path . Equals ( value + "\\ " , StringComparison . OrdinalIgnoreCase ) ) ;
117- item ??= filteredItems . Where ( x => value . StartsWith ( x . Path , StringComparison . OrdinalIgnoreCase ) ) . MaxBy ( x => x . Path . Length ) ;
116+ item ??= filteredItems . Where ( x => value . StartsWith ( x . Path + "\\ " , StringComparison . OrdinalIgnoreCase ) ) . MaxBy ( x => x . Path . Length ) ;
118117 item ??= filteredItems . FirstOrDefault ( x => x . Path . Equals ( Path . GetPathRoot ( value ) , StringComparison . OrdinalIgnoreCase ) ) ;
119118
120119 if ( item is null && value == "Home" )
You can’t perform that action at this time.
0 commit comments