mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added serializable project, references are now immutable.
This commit is contained in:
@ -16,8 +16,7 @@ namespace RainmeterStudio.TextEditorPlugin
|
||||
IDocument IDocumentStorage.Read(string path)
|
||||
{
|
||||
TextDocument document = new TextDocument();
|
||||
document.Reference.Path = path;
|
||||
document.Reference.Name = Path.GetFileName(path);
|
||||
document.Reference = new Reference(Path.GetFileName(path), path);
|
||||
document.Lines.AddRange(File.ReadAllLines(path));
|
||||
|
||||
return document;
|
||||
|
Reference in New Issue
Block a user