mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Rename function to _acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex()
CURA-4188
This commit is contained in:
parent
1332489391
commit
72575eaf37
1 changed files with 3 additions and 2 deletions
|
@ -131,7 +131,7 @@ class VersionUpgrade25to26(VersionUpgrade):
|
|||
|
||||
if definition_container_id == "custom" and not self._checkCustomFdmPrinterHasExtruderStack(machine_id):
|
||||
# go through all extruders and make sure that this custom FDM printer has 8 extruder stacks.
|
||||
self._getNextUniqueCustomFdmPrinterExtruderStackIdIndex()
|
||||
self._acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex()
|
||||
for position in range(8):
|
||||
self._createCustomFdmPrinterExtruderStack(machine_id, position, quality_container_id, material_container_id)
|
||||
|
||||
|
@ -145,7 +145,8 @@ class VersionUpgrade25to26(VersionUpgrade):
|
|||
|
||||
return [filename], [output.getvalue()]
|
||||
|
||||
def _getNextUniqueCustomFdmPrinterExtruderStackIdIndex(self):
|
||||
## Acquires the next unique extruder stack index number for the Custom FDM Printer.
|
||||
def _acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex(self):
|
||||
extruder_stack_dir = Resources.getPath(CuraApplication.ResourceTypes.ExtruderStack)
|
||||
file_name_list = os.listdir(extruder_stack_dir)
|
||||
file_name_list = [os.path.basename(file_name) for file_name in file_name_list]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue