mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Fixed code style and machine default name is retrieved from machine definition
CURA-4345
This commit is contained in:
parent
89de83254d
commit
3082038261
3 changed files with 7 additions and 8 deletions
|
@ -217,8 +217,7 @@ UM.Dialog
|
|||
{
|
||||
base.visible = false
|
||||
var item = machineList.model.getItem(machineList.currentIndex);
|
||||
var defaultName = (item != undefined) ? item.name : ""
|
||||
Cura.MachineManager.addMachine(machineName.text, item.id, defaultName)
|
||||
Cura.MachineManager.addMachine(machineName.text, item.id)
|
||||
base.machineAdded(item.id) // Emit signal that the user added a machine.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue