Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorj.delarago <joeydelarago@gmail.com>2022-06-16 15:27:13 +0300
committerj.delarago <joeydelarago@gmail.com>2022-06-16 15:27:13 +0300
commit1a464051d45367e80f845b30d21ad51ba12fe112 (patch)
treead22cbdb300fc46e9953ad5252d0fa3f331e2399 /cura
parentcc58b362fcac2bb3298791cf66747ad82e85b8d2 (diff)
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
Diffstat (limited to 'cura')
-rw-r--r--cura/Machines/Models/ActiveIntentQualitiesModel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cura/Machines/Models/ActiveIntentQualitiesModel.py b/cura/Machines/Models/ActiveIntentQualitiesModel.py
index 769f9410c5..3f03e9c683 100644
--- a/cura/Machines/Models/ActiveIntentQualitiesModel.py
+++ b/cura/Machines/Models/ActiveIntentQualitiesModel.py
@@ -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", "")