mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 08:44:25 +08:00
Fix indentation
Remove debug statement CURA-9514
This commit is contained in:
parent
daab1aae71
commit
760e53c401
@ -103,21 +103,20 @@ class MachineListModel(ListModel):
|
|||||||
|
|
||||||
if len(abstract_machine_stacks) > 0:
|
if len(abstract_machine_stacks) > 0:
|
||||||
if self._show_cloud_printers:
|
if self._show_cloud_printers:
|
||||||
self.appendItem({ "listType": "HIDE_BUTTON",
|
self.appendItem({"listType": "HIDE_BUTTON",
|
||||||
"isOnline": True,
|
"isOnline": True,
|
||||||
"isAbstractMachine": False,
|
"isAbstractMachine": False,
|
||||||
"machineCount": 0
|
"machineCount": 0
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
self.appendItem({"listType": "SHOW_BUTTON",
|
self.appendItem({"listType": "SHOW_BUTTON",
|
||||||
"isOnline": True,
|
"isOnline": True,
|
||||||
"isAbstractMachine": False,
|
"isAbstractMachine": False,
|
||||||
"machineCount": 0
|
"machineCount": 0
|
||||||
})
|
})
|
||||||
|
|
||||||
for stack in other_machine_stacks:
|
for stack in other_machine_stacks:
|
||||||
self.addItem(stack)
|
self.addItem(stack)
|
||||||
print(self.items)
|
|
||||||
|
|
||||||
def addItem(self, container_stack: ContainerStack, machine_count: int = 0) -> None:
|
def addItem(self, container_stack: ContainerStack, machine_count: int = 0) -> None:
|
||||||
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user