From 24042e9a34bd8b6f5726e6dfe609c4db26a27796 Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Fri, 7 Mar 2014 14:46:23 -0800 Subject: [PATCH] Just adding some comments for clarity. --- CustomWidgets/ExportQueueItemWindow.cs | 2 +- PartsSheet.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CustomWidgets/ExportQueueItemWindow.cs b/CustomWidgets/ExportQueueItemWindow.cs index 45dd8592d..3966c88a2 100644 --- a/CustomWidgets/ExportQueueItemWindow.cs +++ b/CustomWidgets/ExportQueueItemWindow.cs @@ -210,7 +210,7 @@ namespace MatterHackers.MatterControl if (streamToSaveTo != null) { streamToSaveTo.Close (); - Close (); + Close(); } // windows vista +: filePathToSave 'test.stl' // windows xp: filePathToSave 'test' diff --git a/PartsSheet.cs b/PartsSheet.cs index ecc5ea31f..f097c7afb 100644 --- a/PartsSheet.cs +++ b/PartsSheet.cs @@ -241,7 +241,10 @@ namespace MatterHackers.MatterControl } try { + // save the final document document.Save(pathAndFileToSaveTo); + // Now try and open the document. This will lanch whatever PDF viewer is on the system and ask it + // to show the file (at least on Windows). Process.Start(pathAndFileToSaveTo); } catch {