No need to open and load file, it's already been done

This commit is contained in:
Michael Becker 2019-09-06 19:43:41 -04:00
parent e9412ef7a0
commit 0262662d12

View File

@ -363,10 +363,7 @@ namespace UniversalEditor.UserInterface
Console.WriteLine("found {0} editors for object model {1}", editors.Length.ToString(), doc.ObjectModel.ToString());
if (editors.Length > 0)
{
doc.Accessor.Open();
doc.Load();
//doc.Close();
// no need to open and load file, it's already been done
Editor editor = editors[0].Create();
EditorPage page = new EditorPage();
page.Controls.Add(editor, new BoxLayout.Constraints(true, true));