From 98bc3b45d437268fd98bd9b1bf2a5a15c50b2493 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 27 Feb 2021 08:17:25 -0500 Subject: [PATCH] hack around an infinite loop we inadvertently created --- .../UniversalEditor.UserInterface/EditorApplication.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/UniversalEditor.UserInterface/EditorApplication.cs b/Libraries/UniversalEditor.UserInterface/EditorApplication.cs index 6c5eaf04..4c2940bd 100644 --- a/Libraries/UniversalEditor.UserInterface/EditorApplication.cs +++ b/Libraries/UniversalEditor.UserInterface/EditorApplication.cs @@ -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) {