hide bigger avatar when switching tab.

This commit is contained in:
Yann Leboulanger 2009-06-23 16:42:32 +02:00
parent 18f62376e1
commit a49a3a63e1
1 changed files with 6 additions and 0 deletions

View File

@ -2373,6 +2373,12 @@ class ChatControl(ChatControlBase):
self.send_chatstate('active', self.contact)
else:
self.send_chatstate('inactive', self.contact)
# Hide bigger avatar window
if self.bigger_avatar_window:
self.bigger_avatar_window.destroy()
self.bigger_avatar_window = None
# Re-show the small avatar
self.show_avatar()
def show_avatar(self, resource = None):
if not gajim.config.get('show_avatar_in_chat'):