Properly reload extruders at the start

The extruder manager was too late to catch the initial global stack switch and machine switch. Now it just always reloads the extruders at the beginning.

Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
Ghostkeeper 2016-06-02 17:00:38 +02:00
parent 9aa8ca3292
commit d810c7ddbb
No known key found for this signature in database
GPG key ID: 701948C5954A7385
2 changed files with 4 additions and 1 deletions

View file

@ -53,4 +53,5 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
"index": index
}
self.appendItem(item)
print("Appending extruder " + extruder.name + " to presenter.")
self.sort(lambda item: item["index"])