Fix .txt files being imported in batch file drops

This commit is contained in:
MayNL
2026-06-21 19:09:22 -04:00
parent 5041ace420
commit 6237dbe36b
+10
View File
@@ -1337,6 +1337,16 @@ namespace PckStudio.Controls
bool askForAssetType = true;
foreach (var filepath in files)
{
if (filepath.EndsWith(".txt") && fileCount > 1)
{
string originalFile = Path.Combine(
Path.GetDirectoryName(filepath)!,
Path.GetFileNameWithoutExtension(filepath));
if (File.Exists(originalFile))
continue;
}
string assetPath = Path.Combine(prefix + filepath.Substring(baseDirectory.Length)).TrimStart('/', '\\');
PckAssetType assetType = lastSelectedAssetType;