on xenial help sign in
No rotation animations on startup
commit81d32160d665f4e19ed02c7332900e5d481ed5bd authorGerry Boland <gerry.boland@canonical.com> dateMon 9 Jun 2014, 15:01 (12 years ago) parentf97553c
1 file changed+5
qml/OrientedShell.qml+5
qml/OrientedShell.qml+5
@@ -27,6 +27,11 @@ Item {
2727 //width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
2828 //height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
2929
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+
3035 property int acceptedOrientationAngle: {
3136 var screenOrientation = Screen.orientation;
3237 var acceptedOrientation;