Primitivus: 2 bugs fixes
- fixed bad focus when using removeWindow - UnselectAll was incomplete in contactList
This commit is contained in:
parent
c34a6e5795
commit
e188365430
2 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ class ContactList(urwid.WidgetWrap, QuickContactList):
|
|||
|
||||
def unselectAll(self):
|
||||
"""Unselect all contacts"""
|
||||
self.selected = None
|
||||
for widget in self.frame.body.body:
|
||||
if widget.__class__ == custom_widgets.SelectableText:
|
||||
widget.setState(False, invisible=True)
|
||||
|
|
|
|||
|
|
@ -257,6 +257,7 @@ class PrimitivusApp(QuickApp):
|
|||
assert(len(self.center_part.widget_list)<=2)
|
||||
wid_idx = len(self.center_part.widget_list)-1
|
||||
self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text(''))
|
||||
self.center_part.set_focus(0)
|
||||
self.redraw()
|
||||
|
||||
def contactSelected(self, contact_list):
|
||||
|
|
|
|||
Loading…
Reference in a new issue