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
- Special treatment for matrix.to URLs?
- EventFile & Downloading (right click on media > save as...)
- Prevent using upload keybinds in rooms with no perms
- Refactoring
- Use a singleton for utils.js

View File

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