Commit 80e5934b authored by Philipp Hörist's avatar Philipp Hörist

Dont skip extension point

- If the contact has no avatar the tooltip extension point was not executed
parent ce0abb99
Pipeline #2997 failed with stages
in 1 minute
......@@ -449,10 +449,9 @@ class RosterTooltip(StatusTable):
scale = self._ui.tooltip_grid.get_scale_factor()
surface = app.contacts.get_avatar(
account, self.prim_contact.jid, AvatarSize.TOOLTIP, scale)
if surface is None:
return
self._ui.avatar.set_from_surface(surface)
self._ui.avatar.show()
if surface is not None:
self._ui.avatar.set_from_surface(surface)
self._ui.avatar.show()
app.plugin_manager.gui_extension_point(
'roster_tooltip_populate', self, contacts, self._ui.tooltip_grid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment