Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Files/Interacts/Interaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ public async Task PasteItems(DataPackageView packageView, string destinationPath

if (acceptedOperation == DataPackageOperation.Move)
{
foreach (IStorageItem item in pastedItems)
foreach (IStorageItem item in itemsToPaste)
{
if (item.IsOfType(StorageItemTypes.File))
{
Expand Down
11 changes: 7 additions & 4 deletions Files/UserControls/LayoutModes/PhotoAlbum.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ protected override void SetSelectedItemsOnUi(List<ListedItem> selectedItems)
foreach (ListedItem listedItem in FileList.Items)
{
GridViewItem gridViewItem = FileList.ContainerFromItem(listedItem) as GridViewItem;
List<Grid> grids = new List<Grid>();
Interaction.FindChildren<Grid>(grids, gridViewItem);
var rootItem = grids.Find(x => x.Tag?.ToString() == "ItemRoot");
rootItem.CanDrag = selectedItems.Contains(listedItem);
if (gridViewItem != null)
{
List<Grid> grids = new List<Grid>();
Interaction.FindChildren<Grid>(grids, gridViewItem);
var rootItem = grids.Find(x => x.Tag?.ToString() == "ItemRoot");
rootItem.CanDrag = selectedItems.Contains(listedItem);
}
}
}

Expand Down