FIX: update the fan panel
jira: [STUDIO-10499] Change-Id: I5b760946229ea1cb24802ddddce250cc276986d6 (cherry picked from commit 418370ca5cde3a174ed7a9404413f61a62e214e9)
This commit is contained in:
@@ -1566,7 +1566,7 @@ wxBoxSizer *StatusBasePanel::create_misc_control(wxWindow *parent)
|
||||
m_switch_fan->SetBorderWidth(0);
|
||||
m_switch_fan->SetCornerRadius(0);
|
||||
m_switch_fan->SetFont(::Label::Body_10);
|
||||
m_switch_fan->SetLabel(_L("panel"));
|
||||
m_switch_fan->UseTextFan();
|
||||
m_switch_fan->SetTextColor(
|
||||
StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int)StateColor::Disabled), std::make_pair(NORMAL_FAN_TEXT_COL, (int)StateColor::Normal)));
|
||||
|
||||
@@ -2971,6 +2971,8 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
|
||||
m_fan_control_popup->Hide();
|
||||
}
|
||||
|
||||
obj->is_series_o() ? m_switch_fan->UseTextAirCondition() : m_switch_fan->UseTextFan();
|
||||
|
||||
//update cham fan
|
||||
|
||||
/*other*/
|
||||
|
||||
Reference in New Issue
Block a user