mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
On initial startup, when assigning your first printer the ActiveIntentQualitiesModel.py would not be updated. Causing an error unsupported configuration to show.
Fixed by updating the model when the globalContainer is changed as well. CURA-8849
This commit is contained in:
parent
cc58b362fc
commit
1a464051d4
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,8 @@ class ActiveIntentQualitiesModel(ListModel):
|
|||
IntentManager.intentCategoryChangedSignal.connect(self._update)
|
||||
machine_manager = cura.CuraApplication.CuraApplication.getInstance().getMachineManager()
|
||||
machine_manager.activeQualityGroupChanged.connect(self._update)
|
||||
machine_manager.globalContainerChanged.connect(self._updateDelayed)
|
||||
machine_manager.extruderChanged.connect(self._updateDelayed) # We also need to update if an extruder gets disabled
|
||||
|
||||
self._update_timer = QTimer()
|
||||
self._update_timer.setInterval(100)
|
||||
|
@ -52,6 +54,7 @@ class ActiveIntentQualitiesModel(ListModel):
|
|||
self._updateDelayed()
|
||||
|
||||
def _update(self):
|
||||
print("Updating")
|
||||
active_extruder_stack = cura.CuraApplication.CuraApplication.getInstance().getMachineManager().activeStack
|
||||
if active_extruder_stack:
|
||||
self._intent_category = active_extruder_stack.intent.getMetaDataEntry("intent_category", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue