mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX:remove underline of thermal preconditioning
jira:[STUDIO-14597] Change-Id: Ibf43718060b47cc4890b491500b6795d57bf6f8e (cherry picked from commit 16df0fa6f9eb8049b0eb46bef81445112df10767)
This commit is contained in:
@@ -739,6 +739,11 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
|||||||
wxFont font = m_printing_stage_value->GetFont();
|
wxFont font = m_printing_stage_value->GetFont();
|
||||||
font.SetUnderlined(true);
|
font.SetUnderlined(true);
|
||||||
m_printing_stage_value->SetFont(font);
|
m_printing_stage_value->SetFont(font);
|
||||||
|
} else {
|
||||||
|
m_printing_stage_value->SetCursor(wxCursor(wxCURSOR_ARROW));
|
||||||
|
wxFont font = m_printing_stage_value->GetFont();
|
||||||
|
font.SetUnderlined(false);
|
||||||
|
m_printing_stage_value->SetFont(font);
|
||||||
}
|
}
|
||||||
event.Skip();
|
event.Skip();
|
||||||
});
|
});
|
||||||
@@ -1147,8 +1152,8 @@ void PrintingTaskPanel::update_stage_value(wxString stage, int val)
|
|||||||
void PrintingTaskPanel::update_stage_value_with_machine(wxString stage, int val, MachineObject *obj)
|
void PrintingTaskPanel::update_stage_value_with_machine(wxString stage, int val, MachineObject *obj)
|
||||||
{
|
{
|
||||||
m_gauge_progress->SetValue(val);
|
m_gauge_progress->SetValue(val);
|
||||||
// m_printing_stage_value->SetLabelText(stage);
|
m_printing_stage_value->SetLabelText(stage);
|
||||||
m_printing_stage_value->SetLabelText(" Thermal Preconditioning for first layeroptimization");
|
|
||||||
|
|
||||||
if (obj && obj->stage_curr == 58) {
|
if (obj && obj->stage_curr == 58) {
|
||||||
// Show English text for thermal preconditioning
|
// Show English text for thermal preconditioning
|
||||||
@@ -1156,9 +1161,11 @@ void PrintingTaskPanel::update_stage_value_with_machine(wxString stage, int val,
|
|||||||
m_printing_stage_value->SetCursor(wxCursor(wxCURSOR_HAND));
|
m_printing_stage_value->SetCursor(wxCursor(wxCURSOR_HAND));
|
||||||
m_question_button->Show(); // Show question button
|
m_question_button->Show(); // Show question button
|
||||||
} else {
|
} else {
|
||||||
m_printing_stage_value->SetLabelText(stage);
|
|
||||||
m_printing_stage_value->SetForegroundColour(STAGE_TEXT_COL);
|
m_printing_stage_value->SetForegroundColour(STAGE_TEXT_COL);
|
||||||
m_printing_stage_value->SetCursor(wxCURSOR_ARROW);
|
m_printing_stage_value->SetCursor(wxCURSOR_ARROW);
|
||||||
|
wxFont font = m_printing_stage_value->GetFont();
|
||||||
|
font.SetUnderlined(false);
|
||||||
|
m_printing_stage_value->SetFont(font);
|
||||||
m_question_button->Hide(); // Hide question button
|
m_question_button->Hide(); // Hide question button
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user