FIX: do not display use_ams checkbox when no ams
Change-Id: I5be4843b22e019111264922f1721787e2dd5111b Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
3e0f26c296
commit
09e1c0a1af
|
@ -1927,7 +1927,7 @@ void SelectMachineDialog::on_selection_changed(wxCommandEvent &event)
|
|||
|
||||
void SelectMachineDialog::update_ams_check(MachineObject* obj)
|
||||
{
|
||||
if (obj && obj->ams_support_use_ams) {
|
||||
if (obj && obj->ams_support_use_ams && obj->has_ams()) {
|
||||
select_use_ams->Show();
|
||||
} else {
|
||||
select_use_ams->Hide();
|
||||
|
|
Loading…
Reference in New Issue