mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
CURA-4606 incompatible material(s) now results in an empty quality list
This commit is contained in:
parent
b96d49c010
commit
8401e1c7f7
2 changed files with 19 additions and 1 deletions
|
@ -48,12 +48,18 @@ class QualityProfilesModel(ListModel):
|
|||
def _update(self):
|
||||
Logger.log("d", "Updating quality profile model ...")
|
||||
|
||||
active_global_stack = Application.getInstance().getMachineManager()._global_container_stack
|
||||
machine_manager = Application.getInstance().getMachineManager()
|
||||
active_global_stack = machine_manager._global_container_stack
|
||||
if active_global_stack is None:
|
||||
self.setItems([])
|
||||
Logger.log("d", "No active GlobalStack, set quality profile model as empty.")
|
||||
return
|
||||
|
||||
# Check for material compatibility
|
||||
if not machine_manager.activeMaterialsCompatible():
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
quality_group_dict = self._quality_manager.getQualityGroups(active_global_stack)
|
||||
|
||||
item_list = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue