mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:49:00 +08: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
@ -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…
x
Reference in New Issue
Block a user