fix: do not use a loading indicator for identicons

This commit is contained in:
Richard Ramos 2021-01-28 16:13:20 -04:00 committed by Iuri Matias
parent a69d6befe4
commit f0479a50b1
3 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Loader {
if (profileImageSource) {
return profileImageSource
}
identiconImage.showLoadingIndicator = false
return !isCurrentUser ? identicon : profileModel.profile.identicon
}
smooth: false

View File

@ -7,10 +7,11 @@ Rectangle {
property bool noHover: false
property alias source: image.source
property alias fillMode: image.fillMode
property bool showLoadingIndicator: true
signal loaded
signal clicked
color: Style.current.backgroundHover
state: "loading"
state: showLoadingIndicator ? "loading" : "ready"
radius: width / 2
states: [
State {

View File

@ -5,6 +5,7 @@ Rectangle {
id: root
signal clicked
property bool noHover: false
property alias showLoadingIndicator: imgStickerPackThumb.showLoadingIndicator
property alias source: imgStickerPackThumb.source
property alias fillMode: imgStickerPackThumb.fillMode