on xenial help sign in
No rotation animations on startup
81d3216Gerry Boland
qml/OrientedShell.qml+5
@@ -27,6 +27,11 @@ Item {
27 //width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
27 //width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
28 //height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
28 //height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
29
29
30+ // Hack to avoid animating during startup
31+ property bool ready: false
32+ Timer { id: readyTimer; interval: 50; onTriggered: ready = true }
33+ Component.onCompleted: readyTimer.start()
34+
30 property int acceptedOrientationAngle: {
35 property int acceptedOrientationAngle: {
31 var screenOrientation = Screen.orientation;
36 var screenOrientation = Screen.orientation;
32 var acceptedOrientation;
37 var acceptedOrientation;