mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 14:22:43 -07:00
Code refactoring of the OptionsGroup class:
Controls are created only for the active page now
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user