Skip to content

Commit

Permalink
Merge pull request iced-rs#229 from spamviech/fix-active-tab-in-tab-b…
Browse files Browse the repository at this point in the history
…ar-example

add missing set_active_tab
  • Loading branch information
genusistimelord authored Apr 6, 2024
2 parents 657923c + 113ad69 commit ca40220
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 ca40220

Please sign in to comment.