make "invite to" menuitem insensitive when account if offline. Fixes #7082
This commit is contained in:
parent
af10f16f01
commit
1a46caac45
|
@ -386,6 +386,9 @@ control=None, gc_contact=None, is_anonymous=True):
|
||||||
else:
|
else:
|
||||||
build_invite_submenu(invite_menuitem, [(contact, account)])
|
build_invite_submenu(invite_menuitem, [(contact, account)])
|
||||||
|
|
||||||
|
if gajim.account_is_disconnected(account):
|
||||||
|
invite_menuitem.set_sensitive(False)
|
||||||
|
|
||||||
# One or several resource, we do the same for send_custom_status
|
# One or several resource, we do the same for send_custom_status
|
||||||
status_menuitems = gtk.Menu()
|
status_menuitems = gtk.Menu()
|
||||||
send_custom_status_menuitem.set_submenu(status_menuitems)
|
send_custom_status_menuitem.set_submenu(status_menuitems)
|
||||||
|
|
Loading…
Reference in New Issue