mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Used {} instead of set
This is because the one item I put in there is not considered iteratable. CURA-1385
This commit is contained in:
parent
ea80159939
commit
69bd1a6586
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class MachineActionManager:
|
|||
if machine in self._required_actions:
|
||||
self._required_actions[machine].append(self._machine_actions[action_key])
|
||||
else:
|
||||
self._required_actions[machine] = set(self._machine_actions[action_key])
|
||||
self._required_actions[machine] = {self._machine_actions[action_key]}
|
||||
else:
|
||||
raise UnknownMachineAction("Action %s, which is required for %s is not known." % (action_key, machine.getKey()))
|
||||
|
||||
|
@ -44,7 +44,7 @@ class MachineActionManager:
|
|||
if machine in self._supported_actions:
|
||||
self._supported_actions[machine].append(self._machine_actions[action_key])
|
||||
else:
|
||||
self._supported_actions[machine] = set(self._machine_actions[action_key])
|
||||
self._supported_actions[machine] = {self._machine_actions[action_key]}
|
||||
else:
|
||||
Logger.log("W", "Unable to add %s to %s, as the action is not recognised", action_key, machine.getKey())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue