First run actions are now properly handled

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-22 11:49:35 +02:00
parent 6f6d70ad0f
commit 8cfc0737ac
4 changed files with 43 additions and 5 deletions

View file

@ -18,6 +18,7 @@ UM.Dialog
title: catalog.i18nc("@title:window", "Add Printer")
property string activeManufacturer: "Ultimaker";
signal machineAdded(string id)
function getMachineName()
{
var name = machineList.model.getItem(machineList.currentIndex).name
@ -162,6 +163,7 @@ UM.Dialog
base.visible = false
var item = machineList.model.getItem(machineList.currentIndex);
Cura.MachineManager.addMachine(machineName.text, item.id)
base.machineAdded(item.id) // Emit signal that the user added a machine.
}
}