mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Don't create DiscardOrKeepProfileChangesDialog on start-up
Just whenever we need it, please. This removes a warning from the start-up sequence, but the warning is still there when you open the dialogue. It's complaining that a model has size -13 and another has size -14, but I don't know which model that is. The UserChangesModel seems to be fine at a size of 1 or so. Contributes to issue CURA-7501.
This commit is contained in:
parent
cfccf94914
commit
a2d2043b3c
2 changed files with 10 additions and 5 deletions
|
@ -838,17 +838,22 @@ UM.MainWindow
|
|||
}
|
||||
}
|
||||
|
||||
DiscardOrKeepProfileChangesDialog
|
||||
Component
|
||||
{
|
||||
id: discardOrKeepProfileChangesDialog
|
||||
id: discardOrKeepProfileChangesDialogComponent
|
||||
DiscardOrKeepProfileChangesDialog { }
|
||||
}
|
||||
Loader
|
||||
{
|
||||
id: discardOrKeepProfileChangesDialogLoader
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onShowDiscardOrKeepProfileChanges:
|
||||
{
|
||||
discardOrKeepProfileChangesDialog.show()
|
||||
discardOrKeepProfileChangesDialogLoader.sourceComponent = discardOrKeepProfileChangesDialogComponent
|
||||
discardOrKeepProfileChangesDialogLoader.item.show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ UM.Dialog
|
|||
font.bold: true
|
||||
}
|
||||
|
||||
model: base.changesModel
|
||||
model: userChangesModel
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue