mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Connect buttons for selected printers: Print and refresh.
part of CURA-9278
This commit is contained in:
parent
2b1909b7b5
commit
b7611da95e
3 changed files with 22 additions and 9 deletions
|
@ -29,6 +29,7 @@ class CompatibleMachineModel(ListModel):
|
|||
from cura.CuraApplication import CuraApplication
|
||||
machine_manager = CuraApplication.getInstance().getMachineManager()
|
||||
machine_manager.globalContainerChanged.connect(self._update)
|
||||
machine_manager.outputDevicesChanged.connect(self._update)
|
||||
|
||||
def _update(self) -> None:
|
||||
self.clear()
|
||||
|
@ -77,6 +78,6 @@ class CompatibleMachineModel(ListModel):
|
|||
if all([len(extruder["materials"]) > 0 for extruder in extruder_configs.values()]):
|
||||
self.appendItem({
|
||||
"name": printer.name,
|
||||
"unique_id": printer.uniqueName,
|
||||
"unique_id": printer.name, # <- Can assume the cloud doesn't have duplicate names?
|
||||
"extruders": [extruder for extruder in extruder_configs.values()]
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue