Delay showing the main window a little so we do not get garbage on the window

CURA-160 #Start-Review
This commit is contained in:
Arjen Hiemstra 2015-10-14 17:57:00 +02:00
parent 58d5487eb9
commit 769ff84c15

View File

@ -670,18 +670,22 @@ UM.MainWindow
Component.onCompleted: Component.onCompleted:
{ {
UM.Theme.load(UM.Resources.getPath(UM.Resources.Themes, "cura")) UM.Theme.load(UM.Resources.getPath(UM.Resources.Themes, "cura"))
visible = true;
addMachineTimer.start();
} }
Timer Timer
{ {
id: addMachineTimer; id: startupTimer;
interval: 100; interval: 100;
repeat: false; repeat: false;
running: true;
onTriggered: onTriggered:
{ {
if(UM.MachineManager.activeMachineInstance == "") if(!base.visible)
{
base.visible = true;
restart();
}
else if(UM.MachineManager.activeMachineInstance == "")
{ {
addMachineWizard.firstRun = true; addMachineWizard.firstRun = true;
addMachineWizard.open(); addMachineWizard.open();