Skip to content

Commit ed6693c

Browse files
authored
Fix: Fixed crash that would occur when navigating to Home in the column layout (#12745)
1 parent 4cb5abb commit ed6693c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App/Views/Shells/ColumnShellPage.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ public override void NavigateToPath(string navigationPath, Type sourcePageType,
168168
}
169169

170170
public override void NavigateHome()
171-
=> throw new NotImplementedException("Can't show HomePage in ColumnView");
171+
{
172+
this.FindAscendant<ColumnViewBrowser>()?.ParentShellPageInstance?.NavigateHome();
173+
}
172174

173175
public void RemoveLastPageFromBackStack()
174176
{

0 commit comments

Comments
 (0)