mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 06:55:55 +08: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
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user