mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
If None crash
CURA-6869
This commit is contained in:
parent
cc9ec6ee49
commit
44cb810c85
1 changed files with 4 additions and 1 deletions
|
@ -619,7 +619,10 @@ class MachineManager(QObject):
|
||||||
global_container_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
global_container_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||||
if not global_container_stack:
|
if not global_container_stack:
|
||||||
return False
|
return False
|
||||||
return self.activeQualityGroup().is_experimental
|
active_quality_group = self.activeQualityGroup()
|
||||||
|
if active_quality_group is None:
|
||||||
|
return False
|
||||||
|
return active_quality_group.is_experimental
|
||||||
|
|
||||||
@pyqtProperty(str, notify = activeIntentChanged)
|
@pyqtProperty(str, notify = activeIntentChanged)
|
||||||
def activeIntentCategory(self) -> str:
|
def activeIntentCategory(self) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue