fix compatible_prints/printers on load instead

This commit is contained in:
SoftFever
2026-07-01 15:25:43 +08:00
parent 8ba9630e53
commit e39be23d6d
3 changed files with 139 additions and 0 deletions
+5
View File
@@ -448,6 +448,11 @@ public:
void update_compatible(PresetSelectCompatibleType select_other_print_if_incompatible, PresetSelectCompatibleType select_other_filament_if_incompatible);
void update_compatible(PresetSelectCompatibleType select_other_if_incompatible) { this->update_compatible(select_other_if_incompatible, select_other_if_incompatible); }
// Rewrite compatible_printers / compatible_prints references that point at a renamed system
// preset to the current name, mirroring Preset::normalize_inherits for the "inherits" field.
// Call after loading presets and before selection; requires update_system_maps() to have run.
void normalize_compatible_presets();
// Set the is_visible flag for printer vendors, printer models and printer variants
// based on the user configuration.
// If the "vendor" section is missing, enable all models and variants of the particular vendor.