Made to so we save all workspaces before exit

issue: MatterHackers/MCCentral#4318
Part tab fails to persist on close
This commit is contained in:
Lars Brubaker 2018-11-07 14:41:11 -08:00
parent 249275ea98
commit d2f6dcf8bc
5 changed files with 30 additions and 14 deletions

View file

@ -1547,7 +1547,7 @@ namespace MatterHackers.MatterControl
return mappedEditors;
}
internal void Shutdown()
public void Shutdown()
{
// Ensure all threads shutdown gracefully on close
@ -1757,13 +1757,6 @@ namespace MatterHackers.MatterControl
{
this.Thumbnails.Shutdown();
// Save changes before close
if (this.ActivePrinter != null
&& this.ActivePrinter != PrinterConfig.EmptyPrinter)
{
await this.ActivePrinter.Bed.SaveChanges(null, CancellationToken.None);
}
ApplicationSettings.Instance.ReleaseClientToken();
}