mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
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:
parent
58d5487eb9
commit
769ff84c15
1 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue