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
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-12-03 15:25:41 +0300
committerGhostkeeper <rubend@tutanota.com>2021-12-03 15:25:41 +0300
commit0477ba44b2fb8e154c9fda145ae36245a4c31d40 (patch)
tree930742ca96acbc63d5781d546450dc5fb89e9fa2 /cura/Machines
parentb76df21b4b0f8ed734369317e31cd70a4bc73785 (diff)
Encode capabilities as comma-separated list
Previously it was encoded as a stringified Python list of strings, which is much harder to parse. This would go wrong if any of these capabilities have a comma in them, but I think that would be bad practice for keywords like this anyway. Contributes to issue CURA-8671.
Diffstat (limited to 'cura/Machines')
-rw-r--r--cura/Machines/Models/GlobalStacksModel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Machines/Models/GlobalStacksModel.py b/cura/Machines/Models/GlobalStacksModel.py
index cc750f2244..e0dd298b98 100644
--- a/cura/Machines/Models/GlobalStacksModel.py
+++ b/cura/Machines/Models/GlobalStacksModel.py
@@ -123,7 +123,7 @@ class GlobalStacksModel(ListModel):
if self._filter_online_only and not is_online:
continue
- capabilities = set(container_stack.getMetaDataEntry(META_CAPABILITIES, set()))
+ capabilities = set(container_stack.getMetaDataEntry(META_CAPABILITIES, "").split(","))
if set(self._filter_capabilities) - capabilities: # Not all required capabilities are met.
continue