No longer possible to drop a file into another file

This commit is contained in:
MayNL
2026-06-21 18:53:26 -04:00
parent 5906a0df41
commit 5041ace420
+4 -2
View File
@@ -1020,7 +1020,7 @@ namespace PckStudio.Controls
continue;
string key = arg[0];
string value = arg[1];
if (key == "DISPLNAMEID" || key == "THEMENAMEID")
if (key == "DISPLAYNAMEID" || key == "THEMENAMEID")
{
}
@@ -1242,9 +1242,11 @@ namespace PckStudio.Controls
string baseDirectory = Path.GetDirectoryName(filesDropped.First());
string finalDropPath = targetNode.Tag != null ? Path.GetDirectoryName(targetNode?.FullPath) : targetNode?.FullPath;
IEnumerable<string> importPaths = files.Concat(directoryFiles);
ImportFiles(baseDirectory, importPaths, string.IsNullOrWhiteSpace(targetNode?.FullPath) ? string.Empty : targetNode?.FullPath);
ImportFiles(baseDirectory, importPaths, string.IsNullOrWhiteSpace(finalDropPath) ? string.Empty : finalDropPath);
return;
}