mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
ENH: refine enclosed printing logic
1.Display a pop-up window based on whether is enclosed jira: STUDIO-4532 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I5e7c85f6590ebe1c65f957c6bcc57a969e804964
This commit is contained in:
parent
882e4ff114
commit
241d10c637
3 changed files with 14 additions and 1 deletions
|
@ -474,6 +474,18 @@ PrinterArch MachineObject::get_printer_arch() const
|
|||
return DeviceManager::get_printer_arch(printer_type);
|
||||
}
|
||||
|
||||
//BBS: check if machine is enclosed
|
||||
bool MachineObject::is_printer_enclosed() const
|
||||
{
|
||||
std::unordered_set<std::string>enclosed_printers = {
|
||||
"C12",
|
||||
"BL-P002",
|
||||
"BL-P001",
|
||||
"C13"
|
||||
};
|
||||
return enclosed_printers.find(printer_type) != enclosed_printers.end();
|
||||
}
|
||||
|
||||
MachineObject::MachineObject(NetworkAgent* agent, std::string name, std::string id, std::string ip)
|
||||
:dev_name(name),
|
||||
dev_id(id),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue