small fix

This commit is contained in:
SoulliesOfficial
2025-02-19 19:06:26 -05:00
parent 0d69138e1b
commit a00797dc99
4 changed files with 19 additions and 11 deletions

View File

@@ -69,11 +69,7 @@ namespace Ichni.Editor
tabMainRect.anchoredPosition = new Vector2(posX, tabMainRect.anchoredPosition.y);
tabButton.onClick.AddListener(SelectGameElement);
expandButton.onClick.AddListener(ExpandOrFold);
deleteButton.onConfirm = () =>
{
connectedGameElement.parentElement.childElementList.Remove(connectedGameElement);
connectedGameElement.Delete();
};
deleteButton.onConfirm = () => EditorManager.instance.operationManager.CopyPasteDeleteModule.DeleteElement(connectedGameElement);
}
}