set SessionsDialog treeview's current selection again so that deleting multiple sessions is a bit more convenient

This commit is contained in:
Huy Pham 2020-01-20 16:17:27 -08:00
parent b6f68e0b06
commit b3463f1fb7

View file

@ -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])