diff --git a/ActionBar/TemperatureWidgetExtruder.cs b/ActionBar/TemperatureWidgetExtruder.cs index 8d7b8ee1f..b1169f8e4 100644 --- a/ActionBar/TemperatureWidgetExtruder.cs +++ b/ActionBar/TemperatureWidgetExtruder.cs @@ -297,6 +297,8 @@ namespace MatterHackers.MatterControl.ActionBar Width = 150 }; + presetsSelector.DropDownList.Name = "Hotend Preset Selector"; + presetsSelector.DropDownList.SelectionChanged += (s, e) => { // delay this for an update so the slice setting can get updated first diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 219c8effc..3b4c29aed 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 219c8effc5c1621e9501ae09a86f799804578aa0 +Subproject commit 3b4c29aed81f9013e3e901fba5c76127f1c5305d diff --git a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs index 23f72f2a7..05e9c0a20 100644 --- a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs +++ b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs @@ -195,13 +195,12 @@ namespace MatterHackers.MatterControl.Tests.Automation Assert.AreEqual(240, (int)tempWidget.Value); // change material - var dropDownLists = testRunner.GetWidgetsByName("Material DropDown List"); - Assert.AreEqual(2, dropDownLists.Count, "There are two. The slice settings and the pop out."); + var dropDownLists = testRunner.GetWidgetsByName("Hotend Preset Selector"); + Assert.AreEqual(1, dropDownLists.Count, "There is one. The slice settings and the pop out."); DropDownList materialSelector = dropDownLists[0].widget as DropDownList; Assert.AreEqual("", materialSelector.SelectedValue); - // BUG: the offest should not be required - testRunner.ClickByName("Material DropDown List", offset: new Point2D(-30, -25)); + testRunner.ClickByName("Hotend Preset Selector"); testRunner.ClickByName("HIPS Menu"); // check the extruder count