mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
Allow selecting specific network plugin versions
This commit is contained in:
@@ -90,6 +90,25 @@ namespace Slic3r
|
||||
userMachineList.clear();
|
||||
}
|
||||
|
||||
void DeviceManager::set_agent(NetworkAgent* agent)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": updating agent for "
|
||||
<< localMachineList.size() << " local and "
|
||||
<< userMachineList.size() << " user machines";
|
||||
m_agent = agent;
|
||||
|
||||
std::lock_guard<std::mutex> lock(listMutex);
|
||||
for (auto& it : localMachineList) {
|
||||
if (it.second) {
|
||||
it.second->set_agent(agent);
|
||||
}
|
||||
}
|
||||
for (auto& it : userMachineList) {
|
||||
if (it.second) {
|
||||
it.second->set_agent(agent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceManager::EnableMultiMachine(bool enable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user