do not show empty pep and avatar in roster
This commit is contained in:
parent
250c25c62e
commit
b70614e7be
|
@ -5192,7 +5192,7 @@ class RosterWindow:
|
|||
return
|
||||
|
||||
# allocate space for the icon only if needed
|
||||
if not model[titer][data]:
|
||||
if not model[titer][data] or model[titer][data] == empty_pixbuf:
|
||||
renderer.set_property('visible', False)
|
||||
else:
|
||||
renderer.set_property('visible', True)
|
||||
|
@ -5236,6 +5236,9 @@ class RosterWindow:
|
|||
self._set_contact_row_background_color(renderer, jid, account)
|
||||
else:
|
||||
renderer.set_property('visible', False)
|
||||
if model[titer][C_AVATAR_PIXBUF] == empty_pixbuf and \
|
||||
gajim.config.get('avatar_position_in_roster') != 'left':
|
||||
renderer.set_property('visible', False)
|
||||
|
||||
if gajim.config.get('avatar_position_in_roster') == 'left':
|
||||
renderer.set_property('width', gajim.config.get(
|
||||
|
|
Loading…
Reference in New Issue