ENH: move on_device_connected to CalibrationPanel

Change-Id: I856103e9e2cd623919e35a595a436cd67435ec86
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-07-04 16:18:47 +08:00 committed by Lane.Wei
parent d3b9d5dcdc
commit 270acd4685
4 changed files with 21 additions and 9 deletions

View file

@ -88,12 +88,6 @@ void CalibrationWizard::update(MachineObject* obj)
m_page_steps[i]->page->on_reset_page();
}
}
else {
if (last_obj != obj && obj->is_info_ready()) {
this->on_device_connected(obj);
last_obj = obj;
}
}
// update all page steps
for (int i = 0; i < m_page_steps.size(); i++) {