hide correct menuitems due to context menu refactoization
This commit is contained in:
parent
5d1a78f176
commit
583c3e3181
|
@ -2204,11 +2204,9 @@ class RosterWindow:
|
||||||
|
|
||||||
# Remove many items when it's self contact row
|
# Remove many items when it's self contact row
|
||||||
if our_jid:
|
if our_jid:
|
||||||
for menuitem in (rename_menuitem, edit_groups_menuitem,
|
menuitem = xml.get_widget('manage_contact')
|
||||||
above_subscription_separator, subscription_menuitem,
|
menuitem.set_no_show_all(True)
|
||||||
remove_from_roster_menuitem):
|
menuitem.hide()
|
||||||
menuitem.set_no_show_all(True)
|
|
||||||
menuitem.hide()
|
|
||||||
|
|
||||||
# Unsensitive many items when account is offline
|
# Unsensitive many items when account is offline
|
||||||
if gajim.connections[account].connected < 2:
|
if gajim.connections[account].connected < 2:
|
||||||
|
|
Loading…
Reference in New Issue