mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
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:
parent
ab183de6ae
commit
fa3edf5086
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue