mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-09 01:05:39 +02:00
misc: don't perpetually run animations for invisible items
Change-Id: I2f49190c652a4ee99b3480dfcdbf8eef92cffa12 Gitlab: #710
This commit is contained in:
parent
302f700071
commit
c57f32efd2
2 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
RotationAnimation on angle {
|
RotationAnimation on angle {
|
||||||
|
running: root.visible
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: spinningAnimationDuration
|
duration: spinningAnimationDuration
|
||||||
from: 0
|
from: 0
|
||||||
|
@ -88,6 +89,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
RotationAnimation on angle {
|
RotationAnimation on angle {
|
||||||
|
running: root.visible
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: spinningAnimationDuration
|
duration: spinningAnimationDuration
|
||||||
from: 180.0
|
from: 180.0
|
||||||
|
|
|
@ -213,7 +213,7 @@ Item {
|
||||||
|
|
||||||
SequentialAnimation on color {
|
SequentialAnimation on color {
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
running: true
|
running: recordingRect.visible
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
from: JamiTheme.recordIconColor
|
from: JamiTheme.recordIconColor
|
||||||
to: "transparent"
|
to: "transparent"
|
||||||
|
|
Loading…
Add table
Reference in a new issue