mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:39:03 +08:00
Refactoring; Renaming firstRunWizard to machineActionsWizard
CURA-1385
This commit is contained in:
parent
a7deb53acf
commit
3f3a93ae8a
@ -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…
x
Reference in New Issue
Block a user