mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Fix add machine dialog state
This commit is contained in:
parent
361636af29
commit
0555cbae4e
2 changed files with 8 additions and 6 deletions
|
@ -814,7 +814,12 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
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
|
||||
|
|
|
@ -30,12 +30,9 @@ Window
|
|||
property var model: null // Needs to be set by whoever is using this dialog.
|
||||
property alias progressBarVisible: wizardPanel.progressBarVisible
|
||||
|
||||
onVisibilityChanged:
|
||||
function resetModelState()
|
||||
{
|
||||
if (visible)
|
||||
{
|
||||
model.resetState()
|
||||
}
|
||||
model.resetState()
|
||||
}
|
||||
|
||||
WizardPanel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue