Selaa lähdekoodia

Put autosaves in extra temp directory

CPKreuz 1 vuosi sitten
vanhempi
commit
9e7911f1f5

+ 3 - 1
src/PixiEditor/ViewModels/SubViewModels/Document/AutosaveViewModel.cs

@@ -132,7 +132,9 @@ internal class AutosaveViewModel : NotifyableObject
 
         if (Document.FullFilePath == null || !Document.FullFilePath.EndsWith(".pixi"))
         {
-            filePath = Path.Combine(Path.GetTempPath(), "PixiEditor", $"autosave-{tempGuid}.pixi");
+            var root = Path.Combine(Path.GetTempPath(), "PixiEditor", "autosave");
+            Directory.CreateDirectory(root);
+            filePath = Path.Combine(root, $"autosave-{tempGuid}.pixi");
             Document.MarkAsSaved();
         }
         else