mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
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:
parent
64ef5ab3a4
commit
05243a4fca
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
|
||||
#Listen to changes.
|
||||
manager = cura.ExtruderManager.ExtruderManager.getInstance()
|
||||
manager.extrudersChanged.connect(self._updateExtruders())
|
||||
manager.extrudersChanged.connect(self._updateExtruders)
|
||||
self._updateExtruders()
|
||||
|
||||
## Update the list of extruders.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue