Skip to content

Commit 47bf644

Browse files
committed
Changed cast operation to ShortcutItem
1 parent 13c48c0 commit 47bf644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/ViewModels/ShellViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ private bool CheckElevationRights(ListedItem item)
12701270
if (item.SyncStatusUI.LoadSyncStatus)
12711271
return false;
12721272

1273-
return WindowsSecurityService.IsElevationRequired(item.IsShortcut ? ((IShortcutItem)item).TargetPath : item.ItemPath);
1273+
return WindowsSecurityService.IsElevationRequired(item.IsShortcut ? ((ShortcutItem)item).TargetPath : item.ItemPath);
12741274
}
12751275

12761276
public async Task LoadGitPropertiesAsync(IGitItem gitItem)

0 commit comments

Comments
 (0)