Skip to content

Commit

Permalink
FIX:fixed Lan mode printer will disconnection after connection
Browse files Browse the repository at this point in the history
Change-Id: Ifa81f35f4d4f58626fc74f9d092a8a1b4d10fb0d
  • Loading branch information
walterwongbbl authored and lanewei120 committed Mar 1, 2023
1 parent 65e03a5 commit 17b8c67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slic3r/GUI/DeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,8 @@ bool DeviceManager::set_selected_machine(std::string dev_id)
auto last_selected = my_machine_list.find(selected_machine);
if (last_selected != my_machine_list.end()) {
if (last_selected->second->connection_type() == "lan") {
if (last_selected->second->is_connecting())
return false;
m_agent->disconnect_printer();
}
}
Expand Down

0 comments on commit 17b8c67

Please sign in to comment.