From 4a85ee85c1213091d4e95a955885547f19495a89 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Thu, 29 Sep 2016 12:25:50 +0200 Subject: [PATCH] Update the model when something changes in the global stack. Contributes to CURA-2477 Profile menu should only contain valid options for all materials --- cura/Settings/ProfilesModel.py | 2 ++ cura/Settings/ProfilesPageModel.py | 0 2 files changed, 2 insertions(+) create mode 100644 cura/Settings/ProfilesPageModel.py diff --git a/cura/Settings/ProfilesModel.py b/cura/Settings/ProfilesModel.py index 07a498a895..937f151b09 100644 --- a/cura/Settings/ProfilesModel.py +++ b/cura/Settings/ProfilesModel.py @@ -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(). diff --git a/cura/Settings/ProfilesPageModel.py b/cura/Settings/ProfilesPageModel.py new file mode 100644 index 0000000000..e69de29bb2