Focus toggled elements when interacting with the sidebars

Also, restore focus on the workspace when there is no active item
on the sidebar that was just toggled.
This commit is contained in:
Antonio Scandurra
2021-08-27 10:01:44 +02:00
parent 1489c865e7
commit 386631debf
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ impl Sidebar {
if self.active_item_ix == Some(item_ix) {
self.active_item_ix = None;
} else {
self.active_item_ix = Some(item_ix)
self.active_item_ix = Some(item_ix);
}
}