mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
FIX: fix wrong save page
Change-Id: I0dd97f9c8d40e1e88230634af7aaf07180132d61 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
edb70b06b5
commit
547c9cb0ba
3 changed files with 14 additions and 7 deletions
|
@ -90,12 +90,7 @@ void CalibrationWizard::update(MachineObject* obj)
|
|||
}
|
||||
else {
|
||||
if (last_obj != obj && obj->is_info_ready()) {
|
||||
for (int i = 0; i < m_page_steps.size(); i++) {
|
||||
if (m_page_steps[i]->page)
|
||||
m_page_steps[i]->page->on_device_connected(obj);
|
||||
}
|
||||
this->on_device_connected(obj);
|
||||
|
||||
last_obj = obj;
|
||||
}
|
||||
}
|
||||
|
@ -111,6 +106,11 @@ void CalibrationWizard::on_device_connected(MachineObject* obj)
|
|||
{
|
||||
if (!m_page_steps.empty())
|
||||
show_step(m_page_steps.front());
|
||||
|
||||
for (int i = 0; i < m_page_steps.size(); i++) {
|
||||
if (m_page_steps[i]->page)
|
||||
m_page_steps[i]->page->on_device_connected(obj);
|
||||
}
|
||||
}
|
||||
|
||||
void CalibrationWizard::set_cali_method(CalibrationMethod method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue