Browse Source

Keep this position a string

We've set up enough defensive coding that this kept working, but the typing checker fails on it.
Ghostkeeper 4 years ago
parent
commit
d499c6fdfe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Settings/MachineManager.py

+ 1 - 1
cura/Settings/MachineManager.py

@@ -1214,7 +1214,7 @@ class MachineManager(QObject):
         if self._global_container_stack is None:
             return
         if position is None:
-            position_list = list(range(len(self._global_container_stack.extruderList)))
+            position_list = [str(position) for position in range(len(self._global_container_stack.extruderList))]
         else:
             position_list = [position]