Ensure that extruder configurations are correctly sorted

CL-894
This commit is contained in:
Jaime van Kessel 2018-08-21 13:32:22 +02:00
parent 03a7833180
commit 6a08b63f21
4 changed files with 18 additions and 12 deletions

View file

@ -11,9 +11,9 @@ class ExtruderConfigurationModel(QObject):
extruderConfigurationChanged = pyqtSignal()
def __init__(self):
def __init__(self, position: int = -1):
super().__init__()
self._position = -1 # type: int
self._position = position # type: int
self._material = None # type: Optional[MaterialOutputModel]
self._hotend_id = None # type: Optional[str]