FIX:fixed the issue of the hot bed temperature not updating
jira:[STUDIO-8729] Change-Id: I9f5a4b5252503e26e838b58cd88fd62246ca46a5
This commit is contained in:
parent
db00b3c737
commit
0d81a5fbcb
|
@ -182,16 +182,14 @@ void TempInput::SetTagTemp(wxString temp)
|
|||
void TempInput::SetCurrTemp(int temp)
|
||||
{
|
||||
auto tp = wxString::Format("%d", temp);
|
||||
if (currentTemp != tp) {
|
||||
currentTemp = tp;
|
||||
if (GetLabel() != tp) {
|
||||
SetLabel(tp);
|
||||
}
|
||||
}
|
||||
|
||||
void TempInput::SetCurrTemp(wxString temp)
|
||||
{
|
||||
if (currentTemp != temp) {
|
||||
currentTemp = temp;
|
||||
if (GetLabel() != temp) {
|
||||
SetLabel(temp);
|
||||
}
|
||||
}
|
||||
|
@ -257,18 +255,14 @@ void TempInput::Warning(bool warn, WarningType type)
|
|||
|
||||
void TempInput::SetIconActive()
|
||||
{
|
||||
if (!actice) {
|
||||
actice = true;
|
||||
Refresh();
|
||||
}
|
||||
actice = true;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void TempInput::SetIconNormal()
|
||||
{
|
||||
if (actice) {
|
||||
actice = false;
|
||||
Refresh();
|
||||
}
|
||||
actice = false;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void TempInput::SetMaxTemp(int temp) { max_temp = temp; }
|
||||
|
|
|
@ -64,7 +64,6 @@ public:
|
|||
wxPopupTransientWindow *wdialog{nullptr};
|
||||
int temp_type;
|
||||
bool actice = false;
|
||||
wxString currentTemp;
|
||||
|
||||
|
||||
wxString erasePending(wxString &str);
|
||||
|
|
Loading…
Reference in New Issue