mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-17 09:52:36 -07:00
ENH: support extension fan check
jira: [STUDIO-14122] Change-Id: I67c2dff7853fb9f8d1098364f2ecec6dee1a18f1 (cherry picked from commit 022fb9d2e27402c51529b477c75af417c43ead17)
This commit is contained in:
parent
8e82c0f086
commit
55ed67ef23
2 changed files with 8 additions and 0 deletions
|
|
@ -83,6 +83,9 @@ public:
|
|||
/*safety options*/
|
||||
static bool support_safety_options(const std::string &type_str) { return get_value_from_config<bool>(type_str, "support_safety_options"); }
|
||||
|
||||
/*print check*/
|
||||
static bool support_print_check_extension_fan_f000_mounted(const std::string& type_str) { return get_value_from_config<bool>(type_str, "print", "support_print_check_extension_fan_f000_mounted"); }
|
||||
|
||||
public:
|
||||
template<typename T>
|
||||
static T get_value_from_config(const std::string& type_str, const std::string& item)
|
||||
|
|
|
|||
|
|
@ -4572,6 +4572,11 @@ void SelectMachineDialog::UpdateStatusCheckWarning_ExtensionTool(MachineObject*
|
|||
return;
|
||||
}
|
||||
|
||||
if (!DevPrinterConfigUtil::support_print_check_extension_fan_f000_mounted(obj_->printer_type))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (auto extension_tool = obj_->GetExtensionTool().lock())
|
||||
{
|
||||
if (extension_tool->IsToolTypeFanF000() && !extension_tool->IsMounted() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue