Skip to content

Commit d0c4058

Browse files
committed
Fix: Fixed executable flag for shortcut items in drag operation
Updates the drag-and-drop operation to correctly use the IsExecutable property from IShortcutItem when available, ensuring proper handling of shortcut items during file operations.
1 parent d065d23 commit d0c4058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Views/Layouts/BaseLayoutPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ protected virtual async void Item_Drop(object sender, DragEventArgs e)
11891189
dragOverItem = null;
11901190
var item = GetItemFromElement(sender);
11911191
if (item is not null)
1192-
await ParentShellPageInstance!.FilesystemHelpers.PerformOperationTypeAsync(e.AcceptedOperation, e.DataView, (item as IShortcutItem)?.TargetPath ?? item.ItemPath, false, true, item.IsExecutable, item.IsScriptFile);
1192+
await ParentShellPageInstance!.FilesystemHelpers.PerformOperationTypeAsync(e.AcceptedOperation, e.DataView, (item as IShortcutItem)?.TargetPath ?? item.ItemPath, false, true, (item as IShortcutItem)?.IsExecutable ?? item.IsExecutable, item.IsScriptFile);
11931193

11941194
deferral.Complete();
11951195
}

0 commit comments

Comments
 (0)