Skip to content

Commit 0ed13eb

Browse files
authored
Fix: Fixed an issue where canceling drag & dropped cleared the selected items (#16445)
1 parent e88e313 commit 0ed13eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ public async Task DragOverAsync(DragEventArgs e)
100100
return;
101101
}
102102

103-
_itemManipulationModel.ClearSelection();
104-
105103
if (FilesystemHelpers.HasDraggedStorageItems(e.DataView))
106104
{
107105
e.Handled = true;
@@ -166,6 +164,8 @@ x.Item is ZipStorageFile ||
166164
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalizedResource(), folderName);
167165
e.AcceptedOperation = DataPackageOperation.Copy;
168166
}
167+
168+
_itemManipulationModel.ClearSelection();
169169
}
170170
catch (COMException ex) when (ex.Message.Contains("RPC server is unavailable"))
171171
{

0 commit comments

Comments
 (0)