2
0
Эх сурвалжийг харах

Fixed document name not showing up for old files

CPKreuz 4 жил өмнө
parent
commit
0f95846c19

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