aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
index ab0df302e..739f0bcde 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs
@@ -1856,8 +1856,8 @@ namespace Tango.MachineStudio.Developer.ViewModels
{
try
{
- String tempPath = PathHelper.GetTempFolderPath();
- String filePath = Path.Combine(tempPath, job.EmbroideryFileName);
+ var tempDir = TemporaryManager.CreateFolder();
+ String filePath = Path.Combine(tempDir.Path, job.EmbroideryFileName);
File.WriteAllBytes(filePath, job.EmbroideryFileData);
EmbroideryFileConverter.ConvertEmbroideryFile(filePath, dlg.FileName);
_notification.ShowInfo("Embroidery file exported successfully.");