Remove unnecessary extra setMetaDataEntry

This is a relic from when you first had to add the metadata entry. Now it does nothing any more because it's being set directly afterwards to the actual value that is desired in the end.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-30 11:11:17 +01:00
parent 0b8a56458d
commit 1c96c81ba9
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -52,8 +52,6 @@ class ExtruderStack(CuraContainerStack):
return super().getNextStack()
def setEnabled(self, enabled: bool) -> None:
if "enabled" not in self._metadata:
self.setMetaDataEntry("enabled", "True")
self.setMetaDataEntry("enabled", str(enabled))
self.enabledChanged.emit()