Skip to content

Commit 88da69a

Browse files
authored
Fix: Fixed crash with BundlesViewModel_OpenPathEvent (#10696)
1 parent f66d7cb commit 88da69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Helpers/NavigationHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static async Task<bool> OpenPath(string path, IShellPage associatedInstan
119119
bool isHiddenItem = NativeFileOperationsHelper.HasFileAttribute(path, System.IO.FileAttributes.Hidden);
120120
bool isDirectory = NativeFileOperationsHelper.HasFileAttribute(path, System.IO.FileAttributes.Directory);
121121
bool isReparsePoint = NativeFileOperationsHelper.HasFileAttribute(path, System.IO.FileAttributes.ReparsePoint);
122-
bool isShortcut = associatedInstance.SlimContentPage.SelectedItem is { IsShortcut: true };
122+
bool isShortcut = path.EndsWith(".lnk", StringComparison.Ordinal) || path.EndsWith(".url", StringComparison.Ordinal);
123123
FilesystemResult opened = (FilesystemResult)false;
124124

125125
var shortcutInfo = new ShellLinkItem();

0 commit comments

Comments
 (0)