Attempt to refocus WorldForm when selecting objects with ProjectForm open - ProjectForm is/was stealing focus due to DockPanel issue

This commit is contained in:
dexy 2021-11-21 05:02:30 +11:00
parent 67014c4d39
commit 37329a2eaf

View File

@ -7680,6 +7680,10 @@ namespace CodeWalker.Project
ShowCurrentProjectItem(false);
ShowProjectItemInProcess = false;
}
if (WorldForm != null)
{
WorldForm.Focus();//sometimes newly created panel steals focus from the WorldForm, this is a hack to give it back
}
}
}
catch { }