Always read in the current settings temperature where setting the "preheat" temp.
This commit is contained in:
parent
86a590f9de
commit
f20c25b84a
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue