mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Simplify the numUserSettings count
This commit is contained in:
parent
6da5216cac
commit
55dacee45f
1 changed files with 1 additions and 2 deletions
|
@ -399,8 +399,7 @@ class MachineManager(QObject):
|
|||
def numUserSettings(self) -> int:
|
||||
if not self._global_container_stack:
|
||||
return 0
|
||||
num_user_settings = 0
|
||||
num_user_settings += self._global_container_stack.getTop().getNumInstances()
|
||||
num_user_settings = self._global_container_stack.getTop().getNumInstances()
|
||||
stacks = self._global_container_stack.extruderList
|
||||
for stack in stacks:
|
||||
num_user_settings += stack.getTop().getNumInstances()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue