Connect SettingChanged to new propertyChanged function

The listener doesn't properly listen to the signal's parameters yet though.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-23 13:04:36 +02:00
parent bace52fccf
commit e5df225b1e

View file

@ -54,6 +54,10 @@ class CuraEngineBackend(Backend):
self._onActiveViewChanged()
self._stored_layer_data = []
#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)
#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.
#TODO: Properly group propertyChanged signals by whether they are triggered by the same user interaction.