Do not load multiple instances of the same editor

This commit is contained in:
Michael Becker 2019-07-31 19:05:49 -04:00
parent 9467c7a203
commit 4fa4d262d0

View File

@ -174,6 +174,9 @@ namespace UniversalEditor.UserInterface.Common
EditorReference[] editors = GetAvailableEditors();
foreach (EditorReference editor in editors)
{
if (list.Contains (editor))
continue;
if (editor.SupportedObjectModels.Contains(objectModelReference.Type) || editor.SupportedObjectModels.Contains(objectModelReference.ID))
{
list.Add(editor);