Migrate SettingChanged event to PrinterSettings
- Issue MatterHackers/MCCentral#4245 Remove ActiveSliceSettings type
This commit is contained in:
parent
98252dff50
commit
0f9042f28d
22 changed files with 35 additions and 34 deletions
|
|
@ -88,7 +88,7 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
// Make sure we don't have a selection
|
||||
this.Scene.SelectedItem = null;
|
||||
|
||||
|
||||
this.EditContext = editContext;
|
||||
this.ContentType = "mcx";
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ namespace MatterHackers.MatterControl
|
|||
Content = new Object3D(),
|
||||
ContentStore = historyContainer,
|
||||
SourceItem = historyContainer.NewPlatingItem()
|
||||
},
|
||||
},
|
||||
new Object3D());
|
||||
}
|
||||
|
||||
|
|
@ -888,7 +888,7 @@ namespace MatterHackers.MatterControl
|
|||
this.Settings.printer = this;
|
||||
|
||||
// TODO: ActiveSliceSettings is not our Settings! Move SettingsChanged to instance rather than static
|
||||
ActiveSliceSettings.SettingChanged.RegisterEvent(Printer_SettingChanged, ref unregisterEvents);
|
||||
PrinterSettings.SettingChanged.RegisterEvent(Printer_SettingChanged, ref unregisterEvents);
|
||||
|
||||
this.Connection.PrintFinished.RegisterEvent((s, e) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue