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:
parent
249275ea98
commit
d2f6dcf8bc
5 changed files with 30 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue