From 98a308fa859614d0b1909112c6727c18101b345c Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 29 Oct 2019 13:58:40 -0400 Subject: [PATCH] if we don't have any accessor, default to a file --- CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index 1e8aea4a..d428381e 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -609,6 +609,11 @@ namespace UniversalEditor.UserInterface Accessor fa = accs[0].Create(); documents[i] = new Document(fa); } + else if (System.IO.File.Exists(fileNames[i])) + { + FileAccessor fa = new FileAccessor(fileNames[i], true, false, true); + documents[i] = new Document(fa); + } } OpenFile(documents); }