Browse Source

Merge pull request #3585 from DonLakeFlyer/FlashingYield

Remove animation to save perf
QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
f565f29016
  1. 13
      src/ui/toolbar/MainToolBarIndicators.qml

13
src/ui/toolbar/MainToolBarIndicators.qml

@ -102,19 +102,6 @@ Row { @@ -102,19 +102,6 @@ Row {
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
SequentialAnimation {
id: loopAnimation
loops: Animation.Infinite
NumberAnimation { target: criticalMessage; property: "opacity"; duration: 1000; from: 0.25; to: 1 }
NumberAnimation { target: criticalMessage; property: "opacity"; duration: 1000; from: 1; to: 0.25 }
}
onVisibleChanged: {
if(messages.visible) {
loopAnimation.start()
} else {
loopAnimation.stop()
}
}
}
Item {
anchors.fill: parent

Loading…
Cancel
Save