Keep this position a string

We've set up enough defensive coding that this kept working, but the typing checker fails on it.
This commit is contained in:
Ghostkeeper 2020-05-15 18:50:20 +02:00
parent 2125b7130f
commit d499c6fdfe
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -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]