Skip to content

Commit 94cf7d8

Browse files
committedJun 19, 2021
Only copy is supported when dropping from external program
1 parent 5cd0eae commit 94cf7d8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎Files/BaseLayout.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ protected async void Item_DragOver(object sender, DragEventArgs e)
632632
else if (!draggedItems.Any())
633633
{
634634
e.DragUIOverride.IsCaptionVisible = true;
635-
e.DragUIOverride.Caption = string.Format("MoveToFolderCaptionText".GetLocalized(), item.ItemName);
636-
e.AcceptedOperation = DataPackageOperation.Move;
635+
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalized(), item.ItemName);
636+
e.AcceptedOperation = DataPackageOperation.Copy;
637637
}
638638
else
639639
{

‎Files/Interacts/BaseLayoutCommandImplementationModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ public virtual async void DragOver(DragEventArgs e)
529529
else if (!draggedItems.Any())
530530
{
531531
e.DragUIOverride.IsCaptionVisible = true;
532-
e.DragUIOverride.Caption = string.Format("MoveToFolderCaptionText".GetLocalized(), folderName);
533-
e.AcceptedOperation = DataPackageOperation.Move;
532+
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalized(), folderName);
533+
e.AcceptedOperation = DataPackageOperation.Copy;
534534
}
535535
else
536536
{

‎Files/UserControls/SidebarControl.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ private async void NavigationViewLocationItem_DragOver(object sender, DragEventA
501501
else if (!storageItems.Any())
502502
{
503503
e.DragUIOverride.IsCaptionVisible = true;
504-
e.DragUIOverride.Caption = string.Format("MoveToFolderCaptionText".GetLocalized(), locationItem.Text);
505-
e.AcceptedOperation = DataPackageOperation.Move;
504+
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalized(), locationItem.Text);
505+
e.AcceptedOperation = DataPackageOperation.Copy;
506506
}
507507
else
508508
{
@@ -630,8 +630,8 @@ private async void NavigationViewDriveItem_DragOver(object sender, DragEventArgs
630630
else if (!storageItems.Any())
631631
{
632632
e.DragUIOverride.IsCaptionVisible = true;
633-
e.DragUIOverride.Caption = string.Format("MoveToFolderCaptionText".GetLocalized(), driveItem.Text);
634-
e.AcceptedOperation = DataPackageOperation.Move;
633+
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalized(), driveItem.Text);
634+
e.AcceptedOperation = DataPackageOperation.Copy;
635635
}
636636
else
637637
{

0 commit comments

Comments
 (0)