ENH: avoid crash when switching to cloud mode
JIRA: STUDIO-7083 Change-Id: Ic30025049e14d61726b189bd222ae600ea419243 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
1fa62efb66
commit
c608239952
|
@ -2047,6 +2047,9 @@ void GUI_App::init_networking_callbacks()
|
||||||
}
|
}
|
||||||
event.SetInt(-1);
|
event.SetInt(-1);
|
||||||
} else if (state == ConnectStatus::ConnectStatusLost) {
|
} else if (state == ConnectStatus::ConnectStatusLost) {
|
||||||
|
obj->set_access_code("");
|
||||||
|
obj->erase_user_access_code();
|
||||||
|
m_device_manager->localMachineList.erase(obj->dev_id);
|
||||||
m_device_manager->set_selected_machine("", true);
|
m_device_manager->set_selected_machine("", true);
|
||||||
event.SetInt(-1);
|
event.SetInt(-1);
|
||||||
BOOST_LOG_TRIVIAL(info) << "set_on_local_connect_fn: state = lost";
|
BOOST_LOG_TRIVIAL(info) << "set_on_local_connect_fn: state = lost";
|
||||||
|
|
Loading…
Reference in New Issue