Write the current color into printers on creation.

This commit is contained in:
Lars Brubaker 2016-10-18 11:45:47 -07:00
parent 4b555f71c4
commit a22093bfcf
2 changed files with 3 additions and 6 deletions

View file

@ -134,12 +134,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
ActiveTheme.Instance = ActiveTheme.GetThemeColors(activeThemeName);
ActiveTheme.ResumeEvents();
}
else
{
//If the active printer has no theme we set it to the current theme color
ActiveSliceSettings.Instance.SetValue(SettingsKey.active_theme_name, ActiveTheme.Instance.Name);
}
}
}
}

View file

@ -444,6 +444,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
printerSettings.UserLayer[SettingsKey.printer_name.ToString()] = printerName;
//If the active printer has no theme we set it to the current theme color
printerSettings.UserLayer[SettingsKey.active_theme_name] = ActiveTheme.Instance.Name;
// Import named macros as defined in the following printers: (Airwolf Axiom, HD, HD-R, HD2x, HDL, HDx, Me3D Me2, Robo R1[+])
var classicDefaultMacros = printerSettings.GetValue("default_macros");
if (!string.IsNullOrEmpty(classicDefaultMacros))