set SessionsDialog treeview's current selection again so that deleting multiple sessions is a bit more convenient
This commit is contained in:
parent
b6f68e0b06
commit
b3463f1fb7
1 changed files with 4 additions and 0 deletions
|
@ -215,3 +215,7 @@ class SessionsDialog(Dialog):
|
|||
self.tree.delete(item[0])
|
||||
if sid == self.app.core.session_id:
|
||||
self.click_new()
|
||||
selections = self.tree.get_children()
|
||||
if selections:
|
||||
self.tree.focus(selections[0])
|
||||
self.tree.selection_set(selections[0])
|
||||
|
|
Loading…
Reference in a new issue