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
This commit is contained in:
Arjen Hiemstra 2015-09-12 20:08:08 +02:00
parent ab183de6ae
commit fa3edf5086

View file

@ -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;
}
}