mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Code refactoring of the OptionsGroup class:
Controls are created only for the active page now
This commit is contained in:
parent
aedb3892ba
commit
398ff9053d
11 changed files with 568 additions and 386 deletions
|
@ -27,9 +27,7 @@ void ConfigManipulation::toggle_field(const std::string& opt_key, const bool tog
|
|||
if (local_config->option(opt_key) == nullptr)
|
||||
return;
|
||||
}
|
||||
Field* field = get_field(opt_key, opt_index);
|
||||
if (field==nullptr) return;
|
||||
field->toggle(toggle);
|
||||
cb_toggle_field(opt_key, toggle, opt_index);
|
||||
}
|
||||
|
||||
void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, const bool is_global_config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue