Merge pull request #1816 from SiboVG/issue-1815
[#1815] Don't let preset loading override component name on file import
This commit is contained in:
commit
3618daa2a2
@ -68,7 +68,10 @@ class ComponentPresetSetter implements Setter {
|
||||
if (digest != null && !matchingPreset.getDigest().equals(digest)) {
|
||||
warnings.add(Warning.fromString("ComponentPreset for component " + c.getName() + " has wrong digest"));
|
||||
}
|
||||
|
||||
|
||||
// The preset loader can override the component name, so first store it and then apply it again
|
||||
String componentName = c.getName();
|
||||
setMethod.invoke(c, matchingPreset);
|
||||
c.setName(componentName);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user