mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Merge branch 'master' into feature_print_monitoring
# Conflicts: # cura/CuraApplication.py
This commit is contained in:
commit
6d9eb4028e
66 changed files with 25728 additions and 1470 deletions
|
@ -811,6 +811,38 @@ UM.MainWindow
|
|||
AddMachineDialog
|
||||
{
|
||||
id: addMachineDialog
|
||||
onMachineAdded:
|
||||
{
|
||||
machineActionsWizard.start(id)
|
||||
}
|
||||
}
|
||||
|
||||
// Dialog to handle first run machine actions
|
||||
UM.Wizard
|
||||
{
|
||||
id: machineActionsWizard;
|
||||
|
||||
title: catalog.i18nc("@title:window", "Add Printer")
|
||||
property var machine;
|
||||
|
||||
function start(id)
|
||||
{
|
||||
var actions = Cura.MachineActionManager.getFirstStartActions(id)
|
||||
resetPages() // Remove previous pages
|
||||
|
||||
for (var i = 0; i < actions.length; i++)
|
||||
{
|
||||
actions[i].displayItem.reset()
|
||||
machineActionsWizard.appendPage(actions[i].displayItem, catalog.i18nc("@title", actions[i].label));
|
||||
}
|
||||
|
||||
//Only start if there are actions to perform.
|
||||
if (actions.length > 0)
|
||||
{
|
||||
machineActionsWizard.currentPage = 0;
|
||||
show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Connections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue