def addStage(self, stage: Stage) -> None: """Add a stage if it's not already added. :param stage: The stage to be added """ name = stage.getId() if name not in self._stages: self._stages[name] = stage self.stagesChanged.emit()
def addStage(self, stage: Stage) -> None: name = stage.getId() if name not in self._stages: self._stages[name] = stage self.stagesChanged.emit()