Skip to content

Commit c9aa1d2

Browse files
authored
Fix dragging shortcuts over executables (#6696)
1 parent 005cdae commit c9aa1d2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Files/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,12 @@ public async Task<ReturnResult> PerformOperationTypeAsync(DataPackageOperation o
416416
// Open with piggybacks off of the link operation, since there isn't one for it
417417
if (isTargetExecutable)
418418
{
419-
var items = await packageView.GetStorageItemsAsync();
420-
NavigationHelpers.OpenItemsWithExecutable(associatedInstance, items.ToList(), destination);
419+
var handledByFtp = await CheckDragNeedsFulltrust(packageView);
420+
if (!handledByFtp)
421+
{
422+
var items = await GetDraggedStorageItems(packageView);
423+
NavigationHelpers.OpenItemsWithExecutable(associatedInstance, items.ToList(), destination);
424+
}
421425
return ReturnResult.Success;
422426
}
423427
else

Files/Helpers/NavigationHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static async void OpenSelectedItems(IShellPage associatedInstance, bool o
8686
}
8787
}
8888

89-
public static async void OpenItemsWithExecutable(IShellPage associatedInstance, List<IStorageItem> items, string executable)
89+
public static async void OpenItemsWithExecutable(IShellPage associatedInstance, List<IStorageItemWithPath> items, string executable)
9090
{
9191
if (associatedInstance.FilesystemViewModel.WorkingDirectory.StartsWith(CommonPaths.RecycleBinPath))
9292
{

0 commit comments

Comments
 (0)