fix: remove animation causing CPU usage to increase

This commit is contained in:
Richard Ramos 2020-07-03 13:45:44 -04:00 committed by Iuri Matias
parent dc225d50b8
commit 3072ec83f9
1 changed files with 4 additions and 24 deletions

View File

@ -332,34 +332,14 @@ Item {
StyledTextEdit {
id: sentMessage
color: Style.current.darkGrey
text: qsTr("Sent")
anchors.top: contentType === Constants.stickerType ? stickerId.bottom : chatText.bottom
text: outgoingStatus == "sent" ? qsTr("Sent") : qsTr("Sending...")
anchors.top: chatTime.top
anchors.bottomMargin: Style.current.padding
anchors.right: chatTime.left
anchors.rightMargin: Style.current.padding
anchors.rightMargin: 5
font.pixelSize: 10
readOnly: true
visible: isCurrentUser && outgoingStatus == "sent"
}
SVGImage {
id: sendingImg
visible: isCurrentUser && outgoingStatus == "sending"
anchors.top: chatText.top
anchors.right: chatText.left
anchors.rightMargin: 15
source: "../../../img/settings.svg"
width: 15
height: 15
fillMode: Image.Stretch
RotationAnimator {
target: sendingImg;
from: 0;
to: 360;
duration: 1200
running: true
loops: Animation.Infinite
}
visible: isCurrentUser
}
}
}