mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 01:06:35 +00:00
MainForm(Drag'n Drag) - Fix target node being null
This commit is contained in:
@@ -1445,6 +1445,9 @@ namespace PckStudio
|
||||
|
||||
// Retrieve the node at the drop location.
|
||||
TreeNode targetNode = treeViewMain.GetNodeAt(targetPoint);
|
||||
if (targetNode is null)
|
||||
return;
|
||||
|
||||
bool isTargetPckFile = targetNode.IsTagOfType<PckFileData>();
|
||||
|
||||
if (e.Data.GetData(dataFormat) is not TreeNode draggedNode)
|
||||
|
||||
Reference in New Issue
Block a user