put the export function on the uithread.
This commit is contained in:
parent
a66b614ae3
commit
88e46c2305
2 changed files with 20 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
|
||||
void exportGCode_Click(object sender, MouseEventArgs mouseEvent)
|
||||
{
|
||||
UiThread.RunOnIdle(DoExportGCode_Click);
|
||||
}
|
||||
|
||||
void DoExportGCode_Click(object state)
|
||||
{
|
||||
SaveFileDialogParams saveParams = new SaveFileDialogParams("Export GCode|*.gcode", title: "Export GCode");
|
||||
saveParams.Title = "MatterControl: Export File";
|
||||
|
|
@ -178,6 +183,11 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
|
||||
void exportSTL_Click(object sender, MouseEventArgs mouseEvent)
|
||||
{
|
||||
UiThread.RunOnIdle(DoExportSTL_Click);
|
||||
}
|
||||
|
||||
void DoExportSTL_Click(object state)
|
||||
{
|
||||
SaveFileDialogParams saveParams = new SaveFileDialogParams("Save as STL|*.stl");
|
||||
saveParams.Title = "MatterControl: Export File";
|
||||
|
|
|
|||
|
|
@ -98,6 +98,11 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
}
|
||||
|
||||
void exportGCode_Click(object sender, MouseEventArgs mouseEvent)
|
||||
{
|
||||
UiThread.RunOnIdle(DoExportGCode_Click);
|
||||
}
|
||||
|
||||
void DoExportGCode_Click(object state)
|
||||
{
|
||||
SaveFileDialogParams saveParams = new SaveFileDialogParams("Export GCode|*.gcode", title: "Export GCode");
|
||||
saveParams.Title = "MatterControl: Export File";
|
||||
|
|
@ -165,6 +170,11 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
}
|
||||
|
||||
void exportSTL_Click(object sender, MouseEventArgs mouseEvent)
|
||||
{
|
||||
UiThread.RunOnIdle(DoExportSTL_Click);
|
||||
}
|
||||
|
||||
void DoExportSTL_Click(object state)
|
||||
{
|
||||
SaveFileDialogParams saveParams = new SaveFileDialogParams("Save as STL|*.stl");
|
||||
saveParams.Title = "MatterControl: Export File";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue