Write the current color into printers on creation.
This commit is contained in:
parent
4b555f71c4
commit
a22093bfcf
2 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue