FIX:restore the function of the unload button

Change-Id: Ia60bf73f12a7e60b55ef2814a3783a9ca87ca9a0
This commit is contained in:
tao wang 2023-02-16 17:13:57 +08:00 committed by Lane.Wei
parent a246e003da
commit 11a12e8351
1 changed files with 2 additions and 2 deletions

View File

@ -1761,7 +1761,7 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
{
if (!obj) return;
/*if (obj->can_unload_filament()) {
if (obj->can_unload_filament()) {
if (!m_button_unload->IsShown()) {
m_button_unload->Show();
m_button_unload->GetParent()->Layout();
@ -1771,7 +1771,7 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
m_button_unload->Hide();
m_button_unload->GetParent()->Layout();
}
}*/
}
// update extruder icon
update_extruder_status(obj);