diff --git a/MatterControlLib/ApplicationView/PrinterModels.cs b/MatterControlLib/ApplicationView/PrinterModels.cs
index 00f79e448..2803a8127 100644
--- a/MatterControlLib/ApplicationView/PrinterModels.cs
+++ b/MatterControlLib/ApplicationView/PrinterModels.cs
@@ -184,6 +184,20 @@ namespace MatterHackers.MatterControl
return insertionGroup;
}
+ ///
+ /// Loads content to the bed and prepares edit/persistence context for use
+ ///
+ ///
+ ///
+ public async Task LoadPlateFromHistory()
+ {
+ await this.LoadContent(new EditContext()
+ {
+ ContentStore = historyContainer,
+ SourceItem = historyContainer.GetLastPlateOrNew()
+ });
+ }
+
public async Task StashAndPrintGCode(ILibraryItem libraryItem)
{
// Clear plate
@@ -1050,20 +1064,6 @@ namespace MatterHackers.MatterControl
}
}
}
-
- ///
- /// Loads content to the bed and prepares edit/persistence context for use
- ///
- ///
- ///
- internal async Task LoadPlateFromHistory()
- {
- await this.Bed.LoadContent(new EditContext()
- {
- ContentStore = ApplicationController.Instance.Library.PlatingHistory,
- SourceItem = BedConfig.GetLastPlateOrNew()
- });
- }
}
public class View3DConfig : INotifyPropertyChanged
diff --git a/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs b/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs
index 58fb33917..092c08219 100644
--- a/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs
+++ b/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs
@@ -162,7 +162,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
var printer = new PrinterConfig(await ProfileManager.LoadProfileAsync(printerID));
- await printer.LoadPlateFromHistory();
+ await printer.Bed.LoadPlateFromHistory();
await ApplicationController.Instance.SetActivePrinter(printer);
}
@@ -492,7 +492,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
ProfileManager.Instance.LastProfileID = guid;
var printer = new PrinterConfig(printerSettings);
- await printer.LoadPlateFromHistory();
+ await printer.Bed.LoadPlateFromHistory();
await ApplicationController.Instance.SetActivePrinter(printer);