mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
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:
@@ -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.
|
// 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))
|
if (system_presets.erase(alternate_name))
|
||||||
system_presets.emplace(name, bmp);
|
system_presets.emplace(name, bmp);
|
||||||
|
|
||||||
|
preset_aliases.erase(alternate_name); // ORCA: do this to aliases too
|
||||||
|
preset_aliases[name] = name.utf8_string();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
system_presets.emplace(name, bmp);
|
system_presets.emplace(name, bmp);
|
||||||
|
|||||||
Reference in New Issue
Block a user