mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-23 09:12:56 +00:00
Fix crash when drag dropping files without a present node
This commit is contained in:
@@ -1228,7 +1228,7 @@ namespace PckStudio.Controls
|
|||||||
|
|
||||||
string baseDirectory = Path.GetDirectoryName(filesDropped.First());
|
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);
|
IEnumerable<string> importPaths = files.Concat(directoryFiles);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user