Skip to content

Commit c3ad7ea

Browse files
committed
Update NavigationHelpers.cs
1 parent 901b062 commit c3ad7ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App/Helpers/Navigation/NavigationHelpers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,10 @@ private static async Task<FilesystemResult> OpenFile(string path, IShellPage ass
607607
}
608608
else
609609
{
610-
if (associatedInstance.ShellViewModel is not null shellViewModel)
610+
if (associatedInstance.ShellViewModel is not null)
611611
{
612+
var shellViewModel = associatedInstance.ShellViewModel;
613+
612614
opened = await shellViewModel.GetFileWithPathFromPathAsync(path)
613615
.OnSuccess(async childFile =>
614616
{

0 commit comments

Comments
 (0)