Skip to content

Commit

Permalink
fix: remove animation causing CPU usage to increase
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos authored and iurimatias committed Jul 3, 2020
1 parent dc225d5 commit 3072ec8
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions ui/app/AppLayouts/Chat/ChatColumn/Message.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 3072ec8

Please sign in to comment.