Clear one time settings on import from DB

Make sure we don't show create printers if imported printers from DB
Make sure we don't crash if can't find date in oemlayer
This commit is contained in:
Lars Brubaker 2016-07-28 16:36:47 -07:00
parent ce6ae492a1
commit 49efa92ee3
3 changed files with 27 additions and 1 deletions

View file

@ -132,6 +132,11 @@ namespace MatterHackers.MatterControl.DataStorage.ClassicDB
layeredProfile.UserLayer["manual_movement_speeds"] = printer.ManualMovementSpeeds;
// make sure we clear the one time settings
layeredProfile.OemLayer["spiral_vase"] = "";
layeredProfile.OemLayer["bottom_clip_amount"] = "";
layeredProfile.OemLayer["layer_to_pause"] = "";
// TODO: Where can we find CalibrationFiiles in the current model?
//layeredProfile.SetActiveValue(""calibration_files"", ???);