mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
FIX: Crash when switch to the calibration page
after binding the printer in device page jira: 4080 Change-Id: I8e712389bf619b177255111766c271cb9f1bf66e (cherry picked from commit a012b3641713d7f1e3ae60688c2db8054d3cd731)
This commit is contained in:
parent
e7fcd330ba
commit
caac160c7f
1 changed files with 8 additions and 9 deletions
|
@ -526,6 +526,14 @@ void CalibrationPanel::update_all() {
|
||||||
if (!dev) return;
|
if (!dev) return;
|
||||||
obj = dev->get_selected_machine();
|
obj = dev->get_selected_machine();
|
||||||
|
|
||||||
|
// check valid machine
|
||||||
|
if (obj && dev->get_my_machine(obj->dev_id) == nullptr) {
|
||||||
|
dev->set_selected_machine("");
|
||||||
|
if (m_agent) m_agent->set_user_selected_machine("");
|
||||||
|
show_status((int) MONITOR_NO_PRINTER);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// update current wizard only
|
// update current wizard only
|
||||||
int curr_selected = m_tabpanel->GetSelection();
|
int curr_selected = m_tabpanel->GetSelection();
|
||||||
|
|
||||||
|
@ -543,15 +551,6 @@ void CalibrationPanel::update_all() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check valid machine
|
|
||||||
if (obj && dev->get_my_machine(obj->dev_id) == nullptr) {
|
|
||||||
dev->set_selected_machine("");
|
|
||||||
if (m_agent)
|
|
||||||
m_agent->set_user_selected_machine("");
|
|
||||||
show_status((int)MONITOR_NO_PRINTER);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (wxGetApp().is_user_login()) {
|
if (wxGetApp().is_user_login()) {
|
||||||
dev->check_pushing();
|
dev->check_pushing();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue