mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05: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:
1 parent
b97d74892f
commit
1c21402981
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user