Преглед на файлове

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)
             {