Skip to content

Commit

Permalink
Fix: Fixed an issue where canceling drag & dropped cleared the select…
Browse files Browse the repository at this point in the history
…ed items (#16445)
  • Loading branch information
yaira2 authored Nov 7, 2024
1 parent e88e313 commit 0ed13eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ public async Task DragOverAsync(DragEventArgs e)
return;
}

_itemManipulationModel.ClearSelection();

if (FilesystemHelpers.HasDraggedStorageItems(e.DataView))
{
e.Handled = true;
Expand Down Expand Up @@ -166,6 +164,8 @@ x.Item is ZipStorageFile ||
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalizedResource(), folderName);
e.AcceptedOperation = DataPackageOperation.Copy;
}

_itemManipulationModel.ClearSelection();
}
catch (COMException ex) when (ex.Message.Contains("RPC server is unavailable"))
{
Expand Down

0 comments on commit 0ed13eb

Please sign in to comment.