mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Simplify logic by having abstract printers always be online.
CURA-9221
This commit is contained in:
parent
2013ad6baf
commit
04580b8fdc
2 changed files with 2 additions and 5 deletions
|
@ -83,14 +83,10 @@ class MachineListModel(ListModel):
|
|||
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
||||
return
|
||||
|
||||
is_online = parseBool(container_stack.getMetaDataEntry("is_online", False))
|
||||
if container_stack.getMetaDataEntry("type") == "abstract_machine":
|
||||
is_online = True
|
||||
|
||||
self.appendItem({"name": container_stack.getName(),
|
||||
"id": container_stack.getId(),
|
||||
"metadata": container_stack.getMetaData().copy(),
|
||||
"isOnline": is_online,
|
||||
"isOnline": parseBool(container_stack.getMetaDataEntry("is_online", False)),
|
||||
"machineType": container_stack.getMetaDataEntry("type"),
|
||||
"machineCount": machine_count,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue