File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Files.App/Views/Shells Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -508,10 +508,12 @@ public void SubmitSearch(string query)
508
508
SearchQuery = query ,
509
509
} ;
510
510
511
- if ( this is ColumnShellPage )
511
+ var layout = InstanceViewModel . FolderSettings . GetLayoutType ( FilesystemViewModel . WorkingDirectory ) ;
512
+
513
+ if ( layout == typeof ( ColumnsLayoutPage ) )
512
514
NavigateToPath ( FilesystemViewModel . WorkingDirectory , typeof ( DetailsLayoutPage ) , args ) ;
513
515
else
514
- ItemDisplay . Navigate ( InstanceViewModel . FolderSettings . GetLayoutType ( FilesystemViewModel . WorkingDirectory ) , args ) ;
516
+ NavigateToPath ( FilesystemViewModel . WorkingDirectory , layout , args ) ;
515
517
}
516
518
517
519
public void NavigateWithArguments ( Type sourcePageType , NavigationArguments navArgs )
You can’t perform that action at this time.
0 commit comments