mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-18 23:51:49 -06:00
Refactoring; Renaming firstRunWizard to machineActionsWizard
CURA-1385
This commit is contained in:
parent
a7deb53acf
commit
3f3a93ae8a
1 changed files with 4 additions and 4 deletions
|
@ -773,14 +773,14 @@ UM.MainWindow
|
||||||
id: addMachineDialog
|
id: addMachineDialog
|
||||||
onMachineAdded:
|
onMachineAdded:
|
||||||
{
|
{
|
||||||
firstRunWizard.start(id)
|
machineActionsWizard.start(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dialog to handle first run machine actions
|
// Dialog to handle first run machine actions
|
||||||
UM.Wizard
|
UM.Wizard
|
||||||
{
|
{
|
||||||
id: firstRunWizard;
|
id: machineActionsWizard;
|
||||||
|
|
||||||
title: catalog.i18nc("@title:window", "Add Printer")
|
title: catalog.i18nc("@title:window", "Add Printer")
|
||||||
property var machine;
|
property var machine;
|
||||||
|
@ -793,13 +793,13 @@ UM.MainWindow
|
||||||
for (var i = 0; i < actions.length; i++)
|
for (var i = 0; i < actions.length; i++)
|
||||||
{
|
{
|
||||||
actions[i].displayItem.reset()
|
actions[i].displayItem.reset()
|
||||||
firstRunWizard.appendPage(actions[i].displayItem, catalog.i18nc("@title", actions[i].label));
|
machineActionsWizard.appendPage(actions[i].displayItem, catalog.i18nc("@title", actions[i].label));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only start if there are actions to perform.
|
//Only start if there are actions to perform.
|
||||||
if (actions.length > 0)
|
if (actions.length > 0)
|
||||||
{
|
{
|
||||||
firstRunWizard.currentPage = 0;
|
machineActionsWizard.currentPage = 0;
|
||||||
show()
|
show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue