Fix issue that printer name disappear if profile is modified (#13653)

Fix issue that printer name disappear if profile (other than the first one among its variants) is modified
for printers that have multiple variants with different nozzle size
This commit is contained in:
Noisyfox
2026-05-14 00:17:24 +08:00
committed by GitHub
parent b97d74892f
commit 1c21402981

View File

@@ -1241,6 +1241,9 @@ void PlaterPresetComboBox::update()
// Remove the old preset name if exists, and add the new one with the same name but with modified suffix if needed.
if (system_presets.erase(alternate_name))
system_presets.emplace(name, bmp);
preset_aliases.erase(alternate_name); // ORCA: do this to aliases too
preset_aliases[name] = name.utf8_string();
}
} else {
system_presets.emplace(name, bmp);