Update quality and intent models when extruders get changed

CURA-6894
This commit is contained in:
Lipu Fei 2019-10-15 15:34:14 +02:00
parent f93f26444b
commit d350c9e3d9
2 changed files with 14 additions and 1 deletions

View file

@ -43,6 +43,9 @@ class QualityProfilesDropDownMenuModel(ListModel):
machine_manager.activeStackChanged.connect(self._onChange)
machine_manager.extruderChanged.connect(self._onChange)
extruder_manager = application.getExtruderManager()
extruder_manager.extrudersChanged.connect(self._onChange)
self._layer_height_unit = "" # This is cached
self._update_timer = QTimer() # type: QTimer