mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 16:16:00 +08:00
Fix add machine dialog state
This commit is contained in:
parent
361636af29
commit
0555cbae4e
@ -814,7 +814,12 @@ UM.MainWindow
|
|||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Cura.Actions.addMachine
|
target: Cura.Actions.addMachine
|
||||||
onTriggered: addMachineDialog.show()
|
onTriggered:
|
||||||
|
{
|
||||||
|
// Make sure to show from the first page when the dialog shows up.
|
||||||
|
addMachineDialog.resetModelState()
|
||||||
|
addMachineDialog.show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutDialog
|
AboutDialog
|
||||||
|
@ -30,13 +30,10 @@ Window
|
|||||||
property var model: null // Needs to be set by whoever is using this dialog.
|
property var model: null // Needs to be set by whoever is using this dialog.
|
||||||
property alias progressBarVisible: wizardPanel.progressBarVisible
|
property alias progressBarVisible: wizardPanel.progressBarVisible
|
||||||
|
|
||||||
onVisibilityChanged:
|
function resetModelState()
|
||||||
{
|
|
||||||
if (visible)
|
|
||||||
{
|
{
|
||||||
model.resetState()
|
model.resetState()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
WizardPanel
|
WizardPanel
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user