mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Fix crash from window issue
This commit is contained in:
parent
4779b4cff1
commit
937102c154
4 changed files with 3 additions and 0 deletions
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 a new issue