fix: do not use a loading indicator for identicons
This commit is contained in:
parent
a69d6befe4
commit
f0479a50b1
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue