Skip to content

Commit

Permalink
ENH: avoid crash when switching to cloud mode
Browse files Browse the repository at this point in the history
JIRA: STUDIO-7083

Change-Id: Ic30025049e14d61726b189bd222ae600ea419243
Signed-off-by: Stone Li <[email protected]>
  • Loading branch information
StoneLiBambulab authored and lanewei120 committed Jun 11, 2024
1 parent 1fa62ef commit c608239
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,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";
Expand Down

0 comments on commit c608239

Please sign in to comment.