Add function to find preferred quality profile

Not for global yet, so it doesn't appear as if anything is loaded yet.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-26 17:50:46 +02:00
parent 557c3d9515
commit fcab800a8d
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
3 changed files with 33 additions and 4 deletions

View file

@ -20,6 +20,10 @@ class QualityNode(ContainerNode):
super().__init__(container_id)
self.parent = parent
self.intents = {} # type: Dict[str, IntentNode]
my_metadata = ContainerRegistry.getInstance().findContainersMetadata(id = container_id)[0]
self.quality_type = my_metadata["quality_type"]
self._loadAll()
def _loadAll(self) -> None: