mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 22:16:12 +08: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
@ -1679,6 +1679,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…
x
Reference in New Issue
Block a user