redraw actions menu when zeroconf account connects.

This commit is contained in:
Yann Leboulanger 2007-08-22 12:19:30 +00:00
parent 0ea6388333
commit fe0a1b9b1b
2 changed files with 2 additions and 1 deletions

View File

@ -315,6 +315,7 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
check = self.connection.announce()
else:
self.connected = STATUS_LIST.index(show)
self.dispatch('SIGNED_IN', ())
# 'disconnect'
elif show == 'offline' and self.connected:

View File

@ -875,7 +875,7 @@ class RosterWindow:
privacy_lists_menuitem.set_sensitive(False)
if gajim.connections[account].is_zeroconf:
send_single_message_menuitem.set_sensitive(False)
send_single_message_menuitem.set_sensitive(True)
administrator_menuitem.set_sensitive(False)
send_server_message_menuitem.set_sensitive(False)
set_motd_menuitem.set_sensitive(False)