Skip to content

Commit

Permalink
Fix: Fixed COMException in BaseLayoutViewModel.DropAsync (#13936)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu authored Nov 18, 2023
1 parent e483b6c commit 9d9d39c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Files.App/ViewModels/LayoutModes/BaseLayoutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,13 @@ x.Item is ZipStorageFile ||

public async Task DropAsync(DragEventArgs e)
{
var deferral = e.GetDeferral();
e.Handled = true;

if (FilesystemHelpers.HasDraggedStorageItems(e.DataView))
{
await _associatedInstance.FilesystemHelpers.PerformOperationTypeAsync(e.AcceptedOperation, e.DataView, _associatedInstance.FilesystemViewModel.WorkingDirectory, false, true);
e.Handled = true;

await _associatedInstance.RefreshIfNoWatcherExistsAsync();
}

deferral.Complete();
}

public void Dispose()
Expand Down

0 comments on commit 9d9d39c

Please sign in to comment.