mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
FIX: disconnect printer when reselect same printer
Change-Id: If47a3cfa2409f77dc583922fdb416f93d295f03f Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
262578dd23
commit
4da6149845
1 changed files with 1 additions and 0 deletions
|
@ -3980,6 +3980,7 @@ bool DeviceManager::set_selected_machine(std::string dev_id)
|
|||
} else {
|
||||
// lan mode printer reconnect printer
|
||||
if (m_agent) {
|
||||
m_agent->disconnect_printer();
|
||||
it->second->reset();
|
||||
it->second->connect();
|
||||
it->second->set_lan_mode_connection_state(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue