mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:59:02 +08:00
Fix type of setProperty
And properly pass on the extra parameters. Contributes to issue CURA-5330.
This commit is contained in:
parent
e38228ac24
commit
b920b9de4f
@ -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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user