From 5041ace4204aecfe992e0ebcf4e68860414d046f Mon Sep 17 00:00:00 2001 From: MayNL Date: Sun, 21 Jun 2026 18:53:26 -0400 Subject: [PATCH] No longer possible to drop a file into another file --- PCK-Studio/Controls/Editor/PckEditor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Controls/Editor/PckEditor.cs b/PCK-Studio/Controls/Editor/PckEditor.cs index 7a22f1ec..3aaabc5c 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.cs +++ b/PCK-Studio/Controls/Editor/PckEditor.cs @@ -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 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; }