mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-15 00:13:13 +08:00
Commit suggestion by Jelle
CURA-9424
This commit is contained in:
parent
62274c4dac
commit
57e1c7a4ce
@ -129,22 +129,13 @@ class MachineListModel(ListModel):
|
|||||||
other_machine_stacks.remove(stack)
|
other_machine_stacks.remove(stack)
|
||||||
|
|
||||||
if len(abstract_machine_stacks) > 0:
|
if len(abstract_machine_stacks) > 0:
|
||||||
if self._show_cloud_printers:
|
self.appendItem({
|
||||||
self.appendItem({
|
"componentType": "HIDE_BUTTON" if self._show_cloud_printers else "SHOW_BUTTON",
|
||||||
"componentType": "HIDE_BUTTON",
|
"isOnline": True,
|
||||||
"isOnline": True,
|
"isAbstractMachine": False,
|
||||||
"isAbstractMachine": False,
|
"machineCount": 0,
|
||||||
"machineCount": 0,
|
"catergory": "connected",
|
||||||
"catergory": "connected",
|
})
|
||||||
})
|
|
||||||
else:
|
|
||||||
self.appendItem({
|
|
||||||
"componentType": "SHOW_BUTTON",
|
|
||||||
"isOnline": True,
|
|
||||||
"isAbstractMachine": False,
|
|
||||||
"machineCount": 0,
|
|
||||||
"catergory": "connected",
|
|
||||||
})
|
|
||||||
|
|
||||||
for stack in other_machine_stacks:
|
for stack in other_machine_stacks:
|
||||||
self.addItem(stack, False)
|
self.addItem(stack, False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user