mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:59:03 +08:00
Add spaces around binary operators and after comma
Just a little code style thing. Contributes to issue CURA-3828.
This commit is contained in:
parent
7b393064aa
commit
f65043ecc8
@ -712,14 +712,14 @@ class ContainerManager(QObject):
|
||||
if not global_stack:
|
||||
return ""
|
||||
|
||||
approximate_diameter = round(global_stack.getProperty("material_diameter","value"))
|
||||
containers = self._container_registry.findInstanceContainers(id="generic_pla*", approximate_diameter=approximate_diameter)
|
||||
approximate_diameter = round(global_stack.getProperty("material_diameter", "value"))
|
||||
containers = self._container_registry.findInstanceContainers(id = "generic_pla*", approximate_diameter = approximate_diameter)
|
||||
if not containers:
|
||||
Logger.log("d", "Unable to create a new material by cloning Generic PLA, because it cannot be found for the material diameter for this machine.")
|
||||
return ""
|
||||
|
||||
base_file = containers[0].getMetaDataEntry("base_file")
|
||||
containers = self._container_registry.findInstanceContainers(id=base_file)
|
||||
containers = self._container_registry.findInstanceContainers(id = base_file)
|
||||
if not containers:
|
||||
Logger.log("d", "Unable to create a new material by cloning Generic PLA, because the base file for Generic PLA for this machine can not be found.")
|
||||
return ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user