mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 21:27:52 -06:00
Don't show option if defined with type coNone
This commit is contained in:
parent
529f14d64b
commit
2235371f91
1 changed files with 1 additions and 2 deletions
|
@ -190,8 +190,7 @@ void EditGCodeDialog::init_params_list(const std::string& custom_gcode_name)
|
||||||
if (!specific_params.empty()) {
|
if (!specific_params.empty()) {
|
||||||
wxDataViewItem group = m_params_list->AppendGroup(format_wxstr(_L("Specific for %1%"), custom_gcode_name), "custom-gcode_gcode");
|
wxDataViewItem group = m_params_list->AppendGroup(format_wxstr(_L("Specific for %1%"), custom_gcode_name), "custom-gcode_gcode");
|
||||||
for (const auto& opt_key : specific_params)
|
for (const auto& opt_key : specific_params)
|
||||||
if (custom_gcode_specific_config_def.has(opt_key)) {
|
if (auto def = custom_gcode_specific_config_def.get(opt_key); def && def->type != coNone) {
|
||||||
auto def = custom_gcode_specific_config_def.get(opt_key);
|
|
||||||
m_params_list->AppendParam(group, get_type(opt_key, *def), opt_key);
|
m_params_list->AppendParam(group, get_type(opt_key, *def), opt_key);
|
||||||
}
|
}
|
||||||
m_params_list->Expand(group);
|
m_params_list->Expand(group);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue