mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-14 15:26:11 -06:00
FIX: update the extruder panel when object changed
jira: [STUDIO-10050] Change-Id: I4eb12f3cdecf2a099a9b0773c73a48a8aa3713b6 (cherry picked from commit ca85009945010d51adf28c1722bf62385cc5917e)
This commit is contained in:
parent
8b6ffd8428
commit
c1fe23d824
2 changed files with 13 additions and 3 deletions
|
|
@ -2852,19 +2852,24 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
|
|||
}
|
||||
|
||||
/*current*/
|
||||
if (obj->flag_update_nozzle) {
|
||||
/*update when extder position changed or the machine changed*/
|
||||
if (obj->flag_update_nozzle || (m_nozzle_btn_panel->GetClientData() != obj))
|
||||
{
|
||||
if (obj->m_extder_data.current_extder_id == 0xf) {
|
||||
m_extruderImage[select_index]->setExtruderUsed("");
|
||||
m_nozzle_btn_panel->updateState("");
|
||||
} else if (obj->m_extder_data.current_extder_id == MAIN_NOZZLE_ID) {
|
||||
}
|
||||
else if (obj->m_extder_data.current_extder_id == MAIN_NOZZLE_ID) {
|
||||
m_extruderImage[select_index]->setExtruderUsed("right");
|
||||
m_nozzle_btn_panel->updateState("right");
|
||||
} else if (obj->m_extder_data.current_extder_id == DEPUTY_NOZZLE_ID) {
|
||||
}
|
||||
else if (obj->m_extder_data.current_extder_id == DEPUTY_NOZZLE_ID) {
|
||||
m_extruderImage[select_index]->setExtruderUsed("left");
|
||||
m_nozzle_btn_panel->updateState("left");
|
||||
}
|
||||
|
||||
obj->flag_update_nozzle = false;
|
||||
m_nozzle_btn_panel->SetClientData(obj);
|
||||
}
|
||||
|
||||
/*enable status*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue