Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-10-30 18:54:57 +0300
committerGhostkeeper <rubend@tutanota.com>2020-10-30 19:45:58 +0300
commita2d2043b3cf1d2c65918da4353d0d587063bd763 (patch)
tree2a26eda5bbc431e80d3ca0d1ee5b9999edb18890 /resources/qml/Cura.qml
parentcfccf94914af5c6f5e237504e2f145b8b3157d88 (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.qml13
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()
}
}