Update to close the procedure when opened during the paste/replace option.

This commit is contained in:
2024-06-18 10:48:28 -04:00
parent 9d1b99b08e
commit c92b888ec2
3 changed files with 15 additions and 3 deletions

View File

@@ -1825,6 +1825,7 @@ namespace Volian.Controls.Library
EditItem newFocus = null;
EditItem nextEditItem = MyNextEditItem;
EditItem prevEditItem = MyPreviousEditItem;
if (MyStepPanel?.SelectedEditItem?.ActiveParent == null) return null; //Was causing an error when active parent was null and the replaced proc was opened in the editor.
EditItem parentEditItem = ActiveParent;
StepConfig savOrigPasteConfig = MyItemInfo.MyConfig as StepConfig;