mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-23 07:22:25 +00:00
No longer possible to drop a file into another file
This commit is contained in:
@@ -1020,7 +1020,7 @@ namespace PckStudio.Controls
|
|||||||
continue;
|
continue;
|
||||||
string key = arg[0];
|
string key = arg[0];
|
||||||
string value = arg[1];
|
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 baseDirectory = Path.GetDirectoryName(filesDropped.First());
|
||||||
|
|
||||||
|
string finalDropPath = targetNode.Tag != null ? Path.GetDirectoryName(targetNode?.FullPath) : targetNode?.FullPath;
|
||||||
|
|
||||||
IEnumerable<string> importPaths = files.Concat(directoryFiles);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user