FIX: crash when sync printer status

jira: none
Change-Id: I7198f34b12c720519cc2e092254572fe6ee50778
(cherry picked from commit 6aacef93af32f0316f0758df881744fcda2a09a7)
This commit is contained in:
zhimin.zeng
2024-12-23 21:14:11 +08:00
committed by Noisyfox
parent 80481892a5
commit 7abea28715
4 changed files with 19 additions and 9 deletions

View File

@@ -256,6 +256,8 @@ public:
// update size and content of filament_presets.
void update_multi_material_filament_presets(size_t to_delete_filament_id = size_t(-1));
void on_extruders_count_changed(int extruder_count);
// Update the is_compatible flag of all print and filament presets depending on whether they are marked
// as compatible with the currently selected printer (and print in case of filament presets).
// Also updates the is_visible flag of each preset.