ENH: display unload filament button when use_ams is false
Change-Id: I4dc7cc17c33e5f92543934c3d003c34fea94b0cb Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -1633,17 +1633,16 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
|
||||
{
|
||||
if (!obj) return;
|
||||
|
||||
if (obj->has_ams()) {
|
||||
if (obj->can_unload_filament()) {
|
||||
if (!m_button_unload->IsShown()) {
|
||||
m_button_unload->Show();
|
||||
m_button_unload->GetParent()->Layout();
|
||||
}
|
||||
} else {
|
||||
if (m_button_unload->IsShown()) {
|
||||
m_button_unload->Hide();
|
||||
m_button_unload->GetParent()->Layout();
|
||||
}
|
||||
|
||||
} else {
|
||||
if (!m_button_unload->IsShown()) {
|
||||
m_button_unload->Show();
|
||||
m_button_unload->GetParent()->Layout();
|
||||
}
|
||||
}
|
||||
|
||||
// update extruder icon
|
||||
|
||||
Reference in New Issue
Block a user