Disable opening images, when they are not loaded
This commit is contained in:
parent
e8271acd99
commit
6a39b29acc
@ -33,7 +33,7 @@ Item {
|
||||
fillMode: Image.PreserveAspectFit
|
||||
|
||||
MouseArea {
|
||||
enabled: model.data.type == MtxEvent.ImageMessage
|
||||
enabled: model.data.type == MtxEvent.ImageMessage && img.status == Image.Ready
|
||||
anchors.fill: parent
|
||||
onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user