mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:09:02 +08:00
If None crash
CURA-6869
This commit is contained in:
parent
cc9ec6ee49
commit
44cb810c85
@ -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…
x
Reference in New Issue
Block a user