Fix crash from window issue
This commit is contained in:
parent
4779b4cff1
commit
937102c154
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -110,6 +110,9 @@ namespace Switch_Toolbox.Library
|
||||
}
|
||||
public UserControl GetActiveContent(Type type = null)
|
||||
{
|
||||
if (Runtime.MainForm.ActiveMdiChild == null)
|
||||
return null;
|
||||
|
||||
if (Runtime.MainForm.ActiveMdiChild is ObjectEditor)
|
||||
{
|
||||
foreach (var ctrl in ((ObjectEditor)Runtime.MainForm.ActiveMdiChild).stPanel2.Controls)
|
||||
|
Loading…
Reference in New Issue
Block a user