Commit suggestion by Jelle

CURA-9424
This commit is contained in:
Joey de l'Arago 2022-11-11 17:08:45 +01:00
parent 62274c4dac
commit 57e1c7a4ce

View file

@ -129,17 +129,8 @@ class MachineListModel(ListModel):
other_machine_stacks.remove(stack)
if len(abstract_machine_stacks) > 0:
if self._show_cloud_printers:
self.appendItem({
"componentType": "HIDE_BUTTON",
"isOnline": True,
"isAbstractMachine": False,
"machineCount": 0,
"catergory": "connected",
})
else:
self.appendItem({
"componentType": "SHOW_BUTTON",
"componentType": "HIDE_BUTTON" if self._show_cloud_printers else "SHOW_BUTTON",
"isOnline": True,
"isAbstractMachine": False,
"machineCount": 0,