hack around an infinite loop we inadvertently created

This commit is contained in:
Michael Becker 2021-02-27 08:17:25 -05:00
parent 633d8ade8e
commit 98bc3b45d4
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -22,6 +22,12 @@ namespace UniversalEditor.UserInterface
protected override Command FindCommandInternal(string commandID)
{
if (!Common.Reflection.Initialized)
{
// hack around an infinite loop we inadvertently created
return base.FindCommandInternal(commandID);
}
EditorReference[] editors = Common.Reflection.GetAvailableEditors();
foreach (EditorReference er in editors)
{