hide invite contacts buttons in zeroconf chat controls. Fixes #7188

This commit is contained in:
Yann Leboulanger 2012-08-04 17:14:34 +02:00
parent 651a433588
commit aa3a8c7f46
1 changed files with 7 additions and 3 deletions

View File

@ -1744,10 +1744,14 @@ class ChatControl(ChatControlBase):
"him or her a file."))
# Convert to GC
if self.contact.supports(NS_MUC):
self._convert_to_gc_button.set_sensitive(True)
if gajim.config.get_per('accounts', self.account, 'is_zeroconf'):
self._convert_to_gc_button.set_no_show_all(True)
self._convert_to_gc_button.hide()
else:
self._convert_to_gc_button.set_sensitive(False)
if self.contact.supports(NS_MUC):
self._convert_to_gc_button.set_sensitive(True)
else:
self._convert_to_gc_button.set_sensitive(False)
# Information
if gajim.account_is_disconnected(self.account):