mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
ENH: support extension fan check
jira: [STUDIO-14122] Change-Id: I67c2dff7853fb9f8d1098364f2ecec6dee1a18f1 (cherry picked from commit 022fb9d2e27402c51529b477c75af417c43ead17)
This commit is contained in:
@@ -83,6 +83,9 @@ public:
|
|||||||
/*safety options*/
|
/*safety options*/
|
||||||
static bool support_safety_options(const std::string &type_str) { return get_value_from_config<bool>(type_str, "support_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:
|
public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static T get_value_from_config(const std::string& type_str, const std::string& item)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!DevPrinterConfigUtil::support_print_check_extension_fan_f000_mounted(obj_->printer_type))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (auto extension_tool = obj_->GetExtensionTool().lock())
|
if (auto extension_tool = obj_->GetExtensionTool().lock())
|
||||||
{
|
{
|
||||||
if (extension_tool->IsToolTypeFanF000() && !extension_tool->IsMounted() )
|
if (extension_tool->IsToolTypeFanF000() && !extension_tool->IsMounted() )
|
||||||
|
|||||||
Reference in New Issue
Block a user