Refactoring; Renaming firstRunWizard to machineActionsWizard

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-23 11:12:58 +02:00
parent a7deb53acf
commit 3f3a93ae8a

View File

@ -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()
} }
} }