We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e51c7d commit 4374195Copy full SHA for 4374195
1 file changed
src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs
@@ -205,6 +205,15 @@ x.Item is ZipStorageFile ||
205
206
public async Task DropAsync(DragEventArgs e)
207
{
208
+ if (e is null)
209
+ return;
210
+
211
+ if (e.DataView is null)
212
+ {
213
+ e.AcceptedOperation = DataPackageOperation.None;
214
215
+ }
216
217
e.Handled = true;
218
if (e.DataView.Contains(StandardDataFormats.Uri) && await e.DataView.GetUriAsync() is { } uri)
219
0 commit comments