Remove deprecated currentExtruderPositions

CURA-6858
This commit is contained in:
Lipu Fei 2019-10-22 13:51:02 +02:00
parent c62ff262ed
commit 227b76d6f0
3 changed files with 9 additions and 12 deletions

View file

@ -51,6 +51,10 @@ class ExtruderStack(CuraContainerStack):
def getNextStack(self) -> Optional["GlobalStack"]:
return super().getNextStack()
@pyqtProperty(int, constant = True)
def position(self) -> int:
return int(self.getMetaDataEntry("position"))
def setEnabled(self, enabled: bool) -> None:
if self.getMetaDataEntry("enabled", True) == enabled: # No change.
return # Don't emit a signal then.