mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 00:04:28 +08:00
FIX:fixed Lan mode printer will disconnection after connection
Change-Id: Ifa81f35f4d4f58626fc74f9d092a8a1b4d10fb0d
This commit is contained in:
parent
65e03a5b29
commit
17b8c67f99
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user