Connect to function, not result of function

The result of the function was None, but I don't need None to be called whenever extruders changed. I need the function itself to be called.

Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
Ghostkeeper 2016-06-02 14:59:01 +02:00
parent 64ef5ab3a4
commit 05243a4fca
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -37,7 +37,8 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
#Listen to changes. #Listen to changes.
manager = cura.ExtruderManager.ExtruderManager.getInstance() manager = cura.ExtruderManager.ExtruderManager.getInstance()
manager.extrudersChanged.connect(self._updateExtruders()) manager.extrudersChanged.connect(self._updateExtruders)
self._updateExtruders()
## Update the list of extruders. ## Update the list of extruders.
# #