mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Make MachineSelector
more generic by detaching logic from view
By detaching the logic from the view custom handlers can be added to selecting printers. This was needed as the MachineSelector in the `WorkspaceDialog` needed to do something different from the `PreparMenu`. CURA-9424
This commit is contained in:
parent
088ea0a768
commit
dd4e1c66b7
4 changed files with 45 additions and 56 deletions
|
@ -56,6 +56,13 @@ Item
|
|||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
machineManager: Cura.MachineManager
|
||||
onSelectPrinter: function(machine)
|
||||
{
|
||||
toggleContent();
|
||||
Cura.MachineManager.setActiveMachine(machine.id);
|
||||
}
|
||||
|
||||
machineListModel: Cura.MachineListModel {}
|
||||
|
||||
buttons: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue