Remove ActiveSliceSettings.Instance

- Issue MatterHackers/MCCentral#4243
This commit is contained in:
John Lewin 2018-10-05 09:24:57 -07:00
parent d8a5100639
commit 6dbae7668b
32 changed files with 153 additions and 135 deletions

View file

@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
var defaultMargin = theme.ButtonSpacing;
// add the reset button first (if there is one)
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.show_reset_connection))
if (printer.Settings.GetValue<bool>(SettingsKey.show_reset_connection))
{
var resetConnectionButton = new TextIconButton(
"Reset".Localize(),
@ -329,7 +329,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
Title = "Export All Settings".Localize(),
Action = () =>
{
ActiveSliceSettings.Instance.Helpers.ExportAsMatterControlConfig();
printer.Settings.Helpers.ExportAsMatterControlConfig();
}
},
new ActionSeparator(),