Fix setting active user
This commit is contained in:
parent
69cba102d3
commit
1a98de805f
5
hrafn.py
5
hrafn.py
|
@ -557,7 +557,10 @@ class Hrafn():
|
||||||
self.first_account_item = menu_item
|
self.first_account_item = menu_item
|
||||||
|
|
||||||
menu_item.set_draw_as_radio(False)
|
menu_item.set_draw_as_radio(False)
|
||||||
if username == self.username:
|
|
||||||
|
if not self.db.has_key('active_user'):
|
||||||
|
self.db['active_user'] = username
|
||||||
|
elif username == self.db['active_user']:
|
||||||
menu_item.set_active(True)
|
menu_item.set_active(True)
|
||||||
|
|
||||||
menu_item.connect('activate', self.on_account_changed, username)
|
menu_item.connect('activate', self.on_account_changed, username)
|
||||||
|
|
Reference in New Issue
Block a user