Always read in the current settings temperature where setting the "preheat" temp.

This commit is contained in:
larsbrubaker 2016-01-20 07:26:54 -08:00
parent 86a590f9de
commit f20c25b84a

View file

@ -268,13 +268,11 @@ namespace MatterHackers.MatterControl
presetsContainer.AddChild(tempButton);
// We push the value into a temp double so that the function will not point to a shared keyValue instance.
double temp = GetPreheatTemperature();
tempButton.Click += (sender, e) =>
{
UiThread.RunOnIdle(() =>
{
SetTargetTemperature(temp);
SetTargetTemperature(GetPreheatTemperature());
tempSliderContainer.Visible = false;
});
};