mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +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
|
||||
onMachineAdded:
|
||||
{
|
||||
firstRunWizard.start(id)
|
||||
machineActionsWizard.start(id)
|
||||
}
|
||||
}
|
||||
|
||||
// Dialog to handle first run machine actions
|
||||
UM.Wizard
|
||||
{
|
||||
id: firstRunWizard;
|
||||
id: machineActionsWizard;
|
||||
|
||||
title: catalog.i18nc("@title:window", "Add Printer")
|
||||
property var machine;
|
||||
@ -793,13 +793,13 @@ UM.MainWindow
|
||||
for (var i = 0; i < actions.length; i++)
|
||||
{
|
||||
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.
|
||||
if (actions.length > 0)
|
||||
{
|
||||
firstRunWizard.currentPage = 0;
|
||||
machineActionsWizard.currentPage = 0;
|
||||
show()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user