Fix some issues that some option changes won't tirgger slice status

This commit is contained in:
SoftFever 2023-10-22 20:54:48 +08:00
parent e641903b16
commit da47d0f79e
20 changed files with 47 additions and 35 deletions

View file

@ -182,7 +182,7 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
"nozzle_hrc",
"required_nozzle_HRC",
"upward_compatible_machine",
// SoftFever
// Orca
"chamber_temperature",
"thumbnails",
"thumbnails_format",
@ -200,7 +200,10 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
"single_extruder_multi_material_priming",
"activate_air_filtration",
"during_print_exhaust_fan_speed",
"complete_print_exhaust_fan_speed"
"complete_print_exhaust_fan_speed",
"activate_chamber_temp_control",
"manual_filament_change"
};
static std::unordered_set<std::string> steps_ignore;

View file

@ -3473,13 +3473,14 @@ void TabPrinter::build_unregular_pages(bool from_initial_build/* = false*/)
auto page = add_options_page(L("Multimaterial"), "printer", true);
auto optgroup = page->new_optgroup(L("Single extruder multimaterial setup"));
optgroup->append_single_option_line("single_extruder_multi_material");
optgroup->m_on_change = [this, optgroup](const t_config_option_key &opt_key, const boost::any &value) {
wxTheApp->CallAfter([this, opt_key, value]() {
if (opt_key == "single_extruder_multi_material") {
build_unregular_pages();
}
});
};
// Orca: we only support Single Extruder Multi Material, so it's always enabled
// optgroup->m_on_change = [this, optgroup](const t_config_option_key &opt_key, const boost::any &value) {
// wxTheApp->CallAfter([this, opt_key, value]() {
// if (opt_key == "single_extruder_multi_material") {
// build_unregular_pages();
// }
// });
// };
optgroup->append_single_option_line("manual_filament_change");
optgroup = page->new_optgroup(L("Wipe tower"));