don't show send_file_menuitem if we don't have a resource
This commit is contained in:
parent
f53d4750dc
commit
d827d157e8
|
@ -862,6 +862,10 @@ class RosterWindow:
|
||||||
information_menuitem = childs[12]
|
information_menuitem = childs[12]
|
||||||
history_menuitem = childs[13]
|
history_menuitem = childs[13]
|
||||||
|
|
||||||
|
if contact.resource:
|
||||||
|
send_file_menuitem.hide()
|
||||||
|
send_file_menuitem.set_no_show_all(True)
|
||||||
|
else:
|
||||||
send_file_menuitem.connect('activate',
|
send_file_menuitem.connect('activate',
|
||||||
self.on_send_file_menuitem_activate, account, contact)
|
self.on_send_file_menuitem_activate, account, contact)
|
||||||
start_chat_menuitem.connect('activate',
|
start_chat_menuitem.connect('activate',
|
||||||
|
|
Loading…
Reference in New Issue