From b920b9de4f92e7ab5d87dd1f43415f3ae584a0f4 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Jun 2018 13:34:41 +0200 Subject: [PATCH] Fix type of setProperty And properly pass on the extra parameters. Contributes to issue CURA-5330. --- cura/Settings/CuraContainerStack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/CuraContainerStack.py b/cura/Settings/CuraContainerStack.py index 7d1730ee2b..f9041fc86e 100755 --- a/cura/Settings/CuraContainerStack.py +++ b/cura/Settings/CuraContainerStack.py @@ -186,9 +186,9 @@ class CuraContainerStack(ContainerStack): # \param key The key of the setting to set. # \param property_name The name of the property to set. # \param new_value The new value to set the property to. - def setProperty(self, key: str, property_name: str, new_value: Any) -> None: + def setProperty(self, key: str, property_name: str, property_value: Any, container: "ContainerInterface" = None, set_from_cache: bool = False) -> None: container_index = _ContainerIndexes.UserChanges - self._containers[container_index].setProperty(key, property_name, new_value) + self._containers[container_index].setProperty(key, property_name, property_value, container, set_from_cache) ## Overridden from ContainerStack #