ENH: pva filament should use normal support type

1.Always pop up to switch support type for PVA filaments
2.Rename the old "on_filament_change" to "on_filament_count_change",
add a new function as "on_filament_change"

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ib5a96f2334bbe016db6661864d44e66c1fc5660f
(cherry picked from commit a17aa8c701d05cee57fb9d422a5bcde9f434fd7b)
This commit is contained in:
xun.zhang
2025-02-06 10:17:33 +08:00
committed by Noisyfox
parent 4ef6cbacb2
commit f7ea86568f
5 changed files with 50 additions and 17 deletions

View File

@@ -1773,7 +1773,7 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
new_colors.push_back(new_color);
}
wxGetApp().preset_bundle->set_num_filaments(num_extruder, new_colors);
wxGetApp().plater()->on_filaments_change(num_extruder);
wxGetApp().plater()->on_filament_count_change(num_extruder);
wxGetApp().get_tab(Preset::TYPE_PRINT)->update();
wxGetApp().preset_bundle->export_selections(*wxGetApp().app_config);
}
@@ -5570,7 +5570,7 @@ bool Tab::select_preset(
// Orca: update presets for the selected printer
if (m_type == Preset::TYPE_PRINTER && wxGetApp().app_config->get_bool("remember_printer_config")) {
m_preset_bundle->update_selections(*wxGetApp().app_config);
wxGetApp().plater()->sidebar().on_filaments_change(m_preset_bundle->filament_presets.size());
wxGetApp().plater()->sidebar().on_filament_count_change(m_preset_bundle->filament_presets.size());
}
load_current_preset();