mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 19:29:06 +08:00
Account for global container stack being None in the backend plugin
This commit is contained in:
parent
b1f887a70f
commit
396f023bdf
@ -57,7 +57,8 @@ class CuraEngineBackend(Backend):
|
||||
|
||||
#When any setting property changed, call the _onSettingChanged function.
|
||||
#This function will then see if we need to start slicing.
|
||||
Application.getInstance().getGlobalContainerStack().propertyChanged.connect(self._onSettingChanged)
|
||||
if Application.getInstance().getGlobalContainerStack():
|
||||
Application.getInstance().getGlobalContainerStack().propertyChanged.connect(self._onSettingChanged)
|
||||
|
||||
#When you update a setting and other settings get changed through inheritance, many propertyChanged signals are fired.
|
||||
#This timer will group them up, and only slice for the last setting changed signal.
|
||||
|
Loading…
x
Reference in New Issue
Block a user