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:
Stone Li 2022-09-15 10:59:13 +08:00 committed by Lane.Wei
parent 3e0f26c296
commit 09e1c0a1af
1 changed files with 1 additions and 1 deletions

View File

@ -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();