hide invite contacts buttons in zeroconf chat controls. Fixes #7188
This commit is contained in:
parent
651a433588
commit
aa3a8c7f46
|
@ -1744,10 +1744,14 @@ class ChatControl(ChatControlBase):
|
||||||
"him or her a file."))
|
"him or her a file."))
|
||||||
|
|
||||||
# Convert to GC
|
# Convert to GC
|
||||||
if self.contact.supports(NS_MUC):
|
if gajim.config.get_per('accounts', self.account, 'is_zeroconf'):
|
||||||
self._convert_to_gc_button.set_sensitive(True)
|
self._convert_to_gc_button.set_no_show_all(True)
|
||||||
|
self._convert_to_gc_button.hide()
|
||||||
else:
|
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
|
# Information
|
||||||
if gajim.account_is_disconnected(self.account):
|
if gajim.account_is_disconnected(self.account):
|
||||||
|
|
Loading…
Reference in New Issue