mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Disable opening images, when they are not loaded
This commit is contained in:
parent
e8271acd99
commit
6a39b29acc
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ Item {
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
enabled: model.data.type == MtxEvent.ImageMessage
|
enabled: model.data.type == MtxEvent.ImageMessage && img.status == Image.Ready
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id)
|
onClicked: timelineManager.openImageOverlay(model.data.url, model.data.id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue