on xenial help sign in
Splash screen: delay showing the ActivityIndicator by 2 seconds.

Approved by: John Lea, Daniel d'Andrada

commitbdd8ad85edca11a5840d34143eb2250922b0c27c authorFlorian Boucault <florian.boucault@canonical.com> dateFri 12 Feb 2016, 00:11 (11 years ago) parent43f32169f551ce
1 file changed+7−2
qml/Stages/Splash.qml+7−2
qml/Stages/Splash.qml+7−2
@@ -138,15 +138,20 @@ Item {
138138 visible: d.showIcon
139139 }
140140
141+ Timer {
142+ interval: 2000
143+ onTriggered: spinner.running = true
144+ running: true
145+ }
146+
141147 ActivityIndicator {
148+ id: spinner
142149 anchors.centerIn: header.visible ? parent : undefined
143150 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
144151
145152 anchors.horizontalCenter: header.visible ? undefined : parent.horizontalCenter
146153 anchors.bottom: header.visible ? undefined : parent.bottom
147154 anchors.bottomMargin: header.visible ? 0 : units.gu(12)
148−
149− running: true
150155 }
151156
152157 MouseArea {