upgrade the systray variable when we change an account name
This commit is contained in:
parent
3ae06592f6
commit
068d75dbc1
2 changed files with 10 additions and 2 deletions
|
@ -1119,9 +1119,16 @@ class Account_modification_window:
|
||||||
self.plugin.roster.contacts[self.account]
|
self.plugin.roster.contacts[self.account]
|
||||||
self.plugin.sleeper_state[name] = \
|
self.plugin.sleeper_state[name] = \
|
||||||
self.plugin.sleeper_state[self.account]
|
self.plugin.sleeper_state[self.account]
|
||||||
|
#upgrade account variable in opened windows
|
||||||
for kind in ['infos', 'chats', 'gc']:
|
for kind in ['infos', 'chats', 'gc']:
|
||||||
for jid in self.plugin.windows[name][kind]:
|
for j in self.plugin.windows[name][kind]:
|
||||||
self.plugin.windows[name][kind][jid].account = name
|
self.plugin.windows[name][kind][j].account = name
|
||||||
|
#upgrade account in systray
|
||||||
|
print self.plugin.systray.jids
|
||||||
|
for list in self.plugin.systray.jids:
|
||||||
|
if list[0] == self.account:
|
||||||
|
list[0] = name
|
||||||
|
print self.plugin.systray.jids
|
||||||
del self.plugin.windows[self.account]
|
del self.plugin.windows[self.account]
|
||||||
del self.plugin.queues[self.account]
|
del self.plugin.queues[self.account]
|
||||||
del self.plugin.connected[self.account]
|
del self.plugin.connected[self.account]
|
||||||
|
|
|
@ -45,6 +45,7 @@ class systrayDummy:
|
||||||
pass
|
pass
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.t = gtk.Button()
|
self.t = gtk.Button()
|
||||||
|
self.jids = []
|
||||||
|
|
||||||
class systray:
|
class systray:
|
||||||
"""Class for icon in the systray"""
|
"""Class for icon in the systray"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue