From 0477ba44b2fb8e154c9fda145ae36245a4c31d40 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 3 Dec 2021 13:25:41 +0100 Subject: 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. --- cura/Machines/Models/GlobalStacksModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cura/Machines') 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 -- cgit v1.2.3