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:
{
UM.Theme.load(UM.Resources.getPath(UM.Resources.Themes, "cura"))
visible = true;
addMachineTimer.start();
}
Timer
{
id: addMachineTimer;
id: startupTimer;
interval: 100;
repeat: false;
running: true;
onTriggered:
{
if(UM.MachineManager.activeMachineInstance == "")
if(!base.visible)
{
base.visible = true;
restart();
}
else if(UM.MachineManager.activeMachineInstance == "")
{
addMachineWizard.firstRun = true;
addMachineWizard.open();