Give each Tab its own ID

This commit is contained in:
Marshall Bowers 2023-10-19 16:42:21 -04:00
parent 52f2521f6a
commit 28b29d0985
4 changed files with 54 additions and 39 deletions

View file

@ -54,14 +54,14 @@ impl<S: 'static + Send + Sync + Clone> Terminal<S> {
div()
.flex()
.child(
Tab::new()
Tab::new(1)
.title("zed — fish".to_string())
.icon(Icon::Terminal)
.close_side(IconSide::Right)
.current(true),
)
.child(
Tab::new()
Tab::new(2)
.title("zed — fish".to_string())
.icon(Icon::Terminal)
.close_side(IconSide::Right)