Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2016-10-15 18:05:55 +0300
committerJaime van Kessel <nallath@gmail.com>2016-10-15 18:05:55 +0300
commitff24def63c9dc997b79ff90fdf414e0fb1e58326 (patch)
treefc79df52e72b44fbb6620035511d27cefc59476d /cura
parent4769b22138a739cbb113976defb196747891931e (diff)
Use globalProfileId to check if we need to show changed settings
CURA-2690
Diffstat (limited to 'cura')
-rw-r--r--cura/Settings/MachineManager.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py
index 0487f75de9..16d748f8d2 100644
--- a/cura/Settings/MachineManager.py
+++ b/cura/Settings/MachineManager.py
@@ -514,6 +514,17 @@ class MachineManager(QObject):
return quality.getId()
return ""
+ @pyqtProperty(str, notify=activeQualityChanged)
+ def globalQualityId(self):
+ if self._global_container_stack:
+ quality = self._global_container_stack.findContainer({"type": "quality_changes"})
+ if quality and quality != self._empty_quality_changes_container:
+ return quality.getId()
+ quality = self._global_container_stack.findContainer({"type": "quality"})
+ if quality:
+ return quality.getId()
+ return ""
+
@pyqtProperty(str, notify = activeQualityChanged)
def activeQualityType(self):
if self._active_container_stack: