From b1cd5960b82f3c08c95881ae462ae3239efa35df Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 10 Jul 2020 13:23:30 +0200 Subject: [PATCH] Load a number of dialogs on demand instead of always Knocks off 0.4 sec of booting. --- resources/qml/Cura.qml | 1 + resources/qml/WelcomePages/WizardDialog.qml | 1 + resources/qml/WelcomePages/WizardPanel.qml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index c9a16e579a..c3d9dfbf96 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -866,6 +866,7 @@ UM.MainWindow title: catalog.i18nc("@title:window", "What's New") model: CuraApplication.getWhatsNewPagesModel() progressBarVisible: false + visible: false } Connections diff --git a/resources/qml/WelcomePages/WizardDialog.qml b/resources/qml/WelcomePages/WizardDialog.qml index c14974cd03..3bee9fcb5c 100644 --- a/resources/qml/WelcomePages/WizardDialog.qml +++ b/resources/qml/WelcomePages/WizardDialog.qml @@ -40,6 +40,7 @@ Window id: wizardPanel anchors.fill: parent model: dialog.model + visible: dialog.visible } // Close this dialog when there's no more page to show diff --git a/resources/qml/WelcomePages/WizardPanel.qml b/resources/qml/WelcomePages/WizardPanel.qml index 418f4848fb..db4b66d18b 100644 --- a/resources/qml/WelcomePages/WizardPanel.qml +++ b/resources/qml/WelcomePages/WizardPanel.qml @@ -71,7 +71,7 @@ Item right: parent.right } source: base.pageUrl - enabled: base.visible + active: base.visible } } }