mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
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
50c42b3c0d
commit
5d5f2b4ba1
1 changed files with 3 additions and 0 deletions
|
@ -1679,6 +1679,9 @@ void GUI_App::init_networking_callbacks()
|
|||
}
|
||||
event.SetInt(-1);
|
||||
} 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);
|
||||
event.SetInt(-1);
|
||||
BOOST_LOG_TRIVIAL(info) << "set_on_local_connect_fn: state = lost";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue