Fix crash when drag dropping files without a present node

This commit is contained in:
MayNL
2026-06-22 17:37:56 -04:00
parent 7ab6a8a6cd
commit d4b5b6739f
+1 -1
View File
@@ -1228,7 +1228,7 @@ namespace PckStudio.Controls
string baseDirectory = Path.GetDirectoryName(filesDropped.First());
string finalDropPath = targetNode.Tag != null ? Path.GetDirectoryName(targetNode?.FullPath) : targetNode?.FullPath;
string finalDropPath = targetNode != null ? (targetNode.Tag != null ? Path.GetDirectoryName(targetNode?.FullPath) : targetNode?.FullPath) : "";
IEnumerable<string> importPaths = files.Concat(directoryFiles);