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
					
				@ -69,6 +69,9 @@ class ComponentPresetSetter implements Setter {
 | 
			
		||||
			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