From fe0a1b9b1b01aeea0e9d211669df14a36134732c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 22 Aug 2007 12:19:30 +0000 Subject: [PATCH] redraw actions menu when zeroconf account connects. --- src/common/zeroconf/connection_zeroconf.py | 1 + src/roster_window.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py index c1e7ef938..6b4299271 100644 --- a/src/common/zeroconf/connection_zeroconf.py +++ b/src/common/zeroconf/connection_zeroconf.py @@ -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: diff --git a/src/roster_window.py b/src/roster_window.py index 99dd80b85..72536e33d 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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)