Update the model when something changes in the global stack.

Contributes to CURA-2477 Profile menu should only contain valid options for all materials
This commit is contained in:
Simon Edwards 2016-09-29 12:25:50 +02:00
parent 8206ecbfa8
commit 4a85ee85c1
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,8 @@ class ProfilesModel(InstanceContainersModel):
def __init__(self, parent = None):
super().__init__(parent)
Application.getInstance().globalContainerStackChanged.connect(self._update)
## Fetch the list of containers to display.
#
# See UM.Settings.Models.InstanceContainersModel._fetchInstanceContainers().