mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 03:11:03 -07:00
Load a number of dialogs on demand instead of always
Knocks off 0.4 sec of booting.
This commit is contained in:
parent
e000efe493
commit
b1cd5960b8
3 changed files with 3 additions and 1 deletions
|
|
@ -866,6 +866,7 @@ UM.MainWindow
|
||||||
title: catalog.i18nc("@title:window", "What's New")
|
title: catalog.i18nc("@title:window", "What's New")
|
||||||
model: CuraApplication.getWhatsNewPagesModel()
|
model: CuraApplication.getWhatsNewPagesModel()
|
||||||
progressBarVisible: false
|
progressBarVisible: false
|
||||||
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ Window
|
||||||
id: wizardPanel
|
id: wizardPanel
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
model: dialog.model
|
model: dialog.model
|
||||||
|
visible: dialog.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close this dialog when there's no more page to show
|
// Close this dialog when there's no more page to show
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ Item
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
source: base.pageUrl
|
source: base.pageUrl
|
||||||
enabled: base.visible
|
active: base.visible
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue