Skip to content

Commit

Permalink
add missing set_active_tab
Browse files Browse the repository at this point in the history
  • Loading branch information
spamviech committed Apr 6, 2024
1 parent 657923c commit 113ad69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/tab_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ impl Application for TabBarExample {
tab_bar.push(idx, TabLabel::Text(tab_label.to_owned()))
},
)
.set_active_tab(&state.active_tab)
.on_close(Message::TabClosed)
.tab_width(Length::Shrink)
.spacing(5.0)
Expand Down

0 comments on commit 113ad69

Please sign in to comment.