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

@ -924,7 +924,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
windowController.functionToCallOnSave(this, null);
windowController.ChangeToSlicePresetList();
ActiveSliceSettings.Instance.LoadAllSettings();
// Dissabled this as the pannel is already reloaded from LoadAllSettings LBB 2015 01 03.
// Disabled this as the panel is already reloaded from LoadAllSettings LBB 2015 01 03.
//ApplicationController.Instance.ReloadAdvancedControlsPanel();
}
});