mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Adapt ovewritten method signature
This commit is contained in:
parent
58289a7b45
commit
b576423747
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class ExtruderStack(CuraContainerStack):
|
||||||
#
|
#
|
||||||
# This will set the next stack and ensure that we register this stack as an extruder.
|
# This will set the next stack and ensure that we register this stack as an extruder.
|
||||||
@override(ContainerStack)
|
@override(ContainerStack)
|
||||||
def setNextStack(self, stack: CuraContainerStack) -> None:
|
def setNextStack(self, stack: CuraContainerStack, connect_signals: bool = True) -> None:
|
||||||
super().setNextStack(stack)
|
super().setNextStack(stack)
|
||||||
stack.addExtruder(self)
|
stack.addExtruder(self)
|
||||||
self.addMetaDataEntry("machine", stack.id)
|
self.addMetaDataEntry("machine", stack.id)
|
||||||
|
|
|
@ -125,7 +125,7 @@ class GlobalStack(CuraContainerStack):
|
||||||
#
|
#
|
||||||
# This will simply raise an exception since the Global stack cannot have a next stack.
|
# This will simply raise an exception since the Global stack cannot have a next stack.
|
||||||
@override(ContainerStack)
|
@override(ContainerStack)
|
||||||
def setNextStack(self, next_stack: ContainerStack) -> None:
|
def setNextStack(self, stack: CuraContainerStack, connect_signals: bool = True) -> None:
|
||||||
raise Exceptions.InvalidOperationError("Global stack cannot have a next stack!")
|
raise Exceptions.InvalidOperationError("Global stack cannot have a next stack!")
|
||||||
|
|
||||||
# protected:
|
# protected:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue