Merge pull request #22914 from Susko3/remove-arbitrary-extension-limitation

Remove arbitrary extension limitation from drag and drop imports
This commit is contained in:
Dean Herbert 2023-03-20 14:55:03 +09:00 committed by GitHub
commit 09899819c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Versioning;
using System.Threading.Tasks;
@ -161,10 +160,6 @@ private void fileDrop(string[] filePaths)
{
lock (importableFiles)
{
string firstExtension = Path.GetExtension(filePaths.First());
if (filePaths.Any(f => Path.GetExtension(f) != firstExtension)) return;
importableFiles.AddRange(filePaths);
Logger.Log($"Adding {filePaths.Length} files for import");