Guard LoadHistoryItems with WidgetHasBeenClosed

- Observed exception on shutdown where PrintHistory was reloaded during
   shutdown after the db had been closed. Skip load if Closing/closed
 - Spelling, whitespace, use .Localize()
This commit is contained in:
John Lewin 2016-04-11 08:25:40 -07:00
parent b8a9498dd8
commit 93a17d2b6c
5 changed files with 15 additions and 12 deletions

View file

@ -170,7 +170,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
editToolBar.VAnchor |= Agg.UI.VAnchor.ParentCenter;
processingProgressControl.Visible = false;
// If the window is embeded (in the center pannel) and there is no item loaded then don't show the add button
// If the window is embedded (in the center panel) and there is no item loaded then don't show the add button
enterEditButtonsContainer = new FlowLayoutWidget();
{
Button addButton = textImageButtonFactory.Generate("Insert".Localize(), "icon_insert_32x32.png");