mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:29:04 +08: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
@ -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.
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user