ui: return to first tab on TabClose

embed
Manos Pitsidianakis 2019-04-11 00:04:28 +03:00
parent 188e359301
commit ea331327b2
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

View File

@ -1068,7 +1068,7 @@ impl Component for Tabbed {
}
if let Some(c_idx) = self.children.iter().position(|x| x.id() == id) {
self.children.remove(c_idx);
self.cursor_pos = self.cursor_pos.saturating_sub(1);
self.cursor_pos = 0;
self.set_dirty();
return true;
} else {