Do not load multiple instances of the same editor
This commit is contained in:
parent
9467c7a203
commit
4fa4d262d0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user