redraw actions menu when zeroconf account connects.
This commit is contained in:
parent
0ea6388333
commit
fe0a1b9b1b
|
@ -315,6 +315,7 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
|
||||||
check = self.connection.announce()
|
check = self.connection.announce()
|
||||||
else:
|
else:
|
||||||
self.connected = STATUS_LIST.index(show)
|
self.connected = STATUS_LIST.index(show)
|
||||||
|
self.dispatch('SIGNED_IN', ())
|
||||||
|
|
||||||
# 'disconnect'
|
# 'disconnect'
|
||||||
elif show == 'offline' and self.connected:
|
elif show == 'offline' and self.connected:
|
||||||
|
|
|
@ -875,7 +875,7 @@ class RosterWindow:
|
||||||
privacy_lists_menuitem.set_sensitive(False)
|
privacy_lists_menuitem.set_sensitive(False)
|
||||||
|
|
||||||
if gajim.connections[account].is_zeroconf:
|
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)
|
administrator_menuitem.set_sensitive(False)
|
||||||
send_server_message_menuitem.set_sensitive(False)
|
send_server_message_menuitem.set_sensitive(False)
|
||||||
set_motd_menuitem.set_sensitive(False)
|
set_motd_menuitem.set_sensitive(False)
|
||||||
|
|
Loading…
Reference in New Issue