Преглед изворни кода

Fixed document name not showing up for old files

CPKreuz пре 4 година
родитељ
комит
0f95846c19
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      PixiEditor/Models/IO/Importer.cs

+ 3 - 1
PixiEditor/Models/IO/Importer.cs

@@ -76,7 +76,9 @@ namespace PixiEditor.Models.IO
             {
                 using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read);
 
-                return PixiParser.DeserializeOld(stream).ToDocument();
+                Document doc = PixiParser.DeserializeOld(stream).ToDocument();
+                doc.DocumentFilePath = path;
+                return doc;
             }
             catch (SerializationException)
             {