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) { if (profileImageSource) {
return profileImageSource return profileImageSource
} }
identiconImage.showLoadingIndicator = false
return !isCurrentUser ? identicon : profileModel.profile.identicon return !isCurrentUser ? identicon : profileModel.profile.identicon
} }
smooth: false smooth: false

View File

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

View File

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