add tooltip explaining why file transfer button is diabled. Fixes #3948
This commit is contained in:
parent
5419b2cb36
commit
412d9b4d87
|
@ -1286,6 +1286,13 @@ class ChatControl(ChatControlBase):
|
||||||
self._send_file_button.set_sensitive(True)
|
self._send_file_button.set_sensitive(True)
|
||||||
else:
|
else:
|
||||||
self._send_file_button.set_sensitive(False)
|
self._send_file_button.set_sensitive(False)
|
||||||
|
if not gajim.capscache.is_supported(self.contact, NS_FILE):
|
||||||
|
self._send_file_button.set_tooltip_text(_(
|
||||||
|
"This contact does not support file transfer."))
|
||||||
|
else:
|
||||||
|
self._send_file_button.set_tooltip_text(
|
||||||
|
_("You need to know the real JID of the contact to send him or "
|
||||||
|
"her a file."))
|
||||||
|
|
||||||
# Convert to GC
|
# Convert to GC
|
||||||
if gajim.capscache.is_supported(self.contact, NS_MUC):
|
if gajim.capscache.is_supported(self.contact, NS_MUC):
|
||||||
|
|
Loading…
Reference in New Issue