mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-28 14:54:27 +08: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
@ -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…
x
Reference in New Issue
Block a user