diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-10-30 18:54:57 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-10-30 19:45:58 +0300 |
commit | a2d2043b3cf1d2c65918da4353d0d587063bd763 (patch) | |
tree | 2a26eda5bbc431e80d3ca0d1ee5b9999edb18890 /resources/qml/Cura.qml | |
parent | cfccf94914af5c6f5e237504e2f145b8b3157d88 (diff) |
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.
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r-- | resources/qml/Cura.qml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index c3d9dfbf96..3aa9dc558f 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -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() } } |