mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Override setNextStack in GlobalStack and raise an error if called
Since the global stack should never have a next stack Contributes to CURA-3497
This commit is contained in:
parent
b9f01b30c8
commit
0656dd53c3
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ class GlobalStack(ContainerStack):
|
|||
def __init__(self, container_id, *args, **kwargs):
|
||||
super().__init__(container_id, *args, **kwargs)
|
||||
|
||||
def setNextStack(self, next_stack):
|
||||
raise CannotSetNextStackError("Global stack cannot have a next stack!")
|
||||
|
||||
global_stack_mime = MimeType(
|
||||
name = "application/x-cura-globalstack",
|
||||
comment = "Cura Global Stack",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue