We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad69f9 commit ce338f7Copy full SHA for ce338f7
src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs
@@ -72,8 +72,11 @@ public async Task NavigateToPath(string path)
72
return;
73
}
74
75
- ContentPageContext.ShellPage!.NavigateWithArguments(
76
- ContentPageContext.ShellPage!.InstanceViewModel.FolderSettings.GetLayoutType(path),
+ if (ContentPageContext.ShellPage is not IShellPage shellPage)
+ return;
77
+
78
+ shellPage.NavigateWithArguments(
79
+ shellPage.InstanceViewModel.FolderSettings.GetLayoutType(path),
80
new() { NavPathParam = path });
81
82
0 commit comments