From fa3edf50863fbbd29b629ebf0309b233106faca4 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Sat, 12 Sep 2015 20:08:08 +0200 Subject: [PATCH] Delay showing the window until componentComplete This way most of the UI parsing and construction will be done while the window is not yet visible, reducing the time we show a window with no contents. Contributes to #74 --- resources/qml/Cura.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index e49ef40e8c..1bcce6301b 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -12,7 +12,6 @@ import UM 1.1 as UM UM.MainWindow { id: base - visible: true //: Cura application window title title: catalog.i18nc("@title:window","Cura"); @@ -474,7 +473,6 @@ UM.MainWindow id: actions; open.onTriggered: openDialog.open(); - save.onTriggered: saveDialog.open(); quit.onTriggered: base.visible = false; @@ -649,6 +647,10 @@ UM.MainWindow } } - Component.onCompleted: UM.Theme.load(UM.Resources.getPath(UM.Resources.Themes, "cura")) + Component.onCompleted: + { + UM.Theme.load(UM.Resources.getPath(UM.Resources.Themes, "cura")) + base.visible = true; + } }