Hide avatar tooltips for broken thumbnails

This commit is contained in:
miruka 2019-12-11 15:16:14 -04:00
parent 5bef84064d
commit 1ecd383791
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@
- EventLink - EventLink
- Special treatment for matrix.to URLs? - Special treatment for matrix.to URLs?
- EventFile & Downloading (right click on media > save as...) - EventFile & Downloading (right click on media > save as...)
- Prevent using upload keybinds in rooms with no perms
- Refactoring - Refactoring
- Use a singleton for utils.js - Use a singleton for utils.js

View File

@ -57,7 +57,9 @@ Rectangle {
HToolTip { HToolTip {
id: avatarToolTip id: avatarToolTip
visible: (toolTipSourceOverride || toolTipMxc) && visible: ! avatarImage.broken &&
avatarImage.status !== Image.Error &&
(toolTipSourceOverride || toolTipMxc) &&
hoverHandler.hovered hoverHandler.hovered
delay: 1000 delay: 1000
backgroundColor: theme.controls.avatar.hoveredImage.background backgroundColor: theme.controls.avatar.hoveredImage.background