Skip to content

Commit 264e3be

Browse files
renamed tabs to their appropriate names.
1 parent 85afc0c commit 264e3be

5 files changed

+5
-5
lines changed

src/gui/view/discover_view.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl Tab for DiscoverTab {
206206
}
207207

208208
fn tab_label(&self) -> iced_aw::TabLabel {
209-
iced_aw::TabLabel::Text("Discover icon".to_owned())
209+
iced_aw::TabLabel::Text(self.title())
210210
}
211211

212212
fn content(&self) -> Element<'_, Self::Message> {

src/gui/view/my_shows_view.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl Tab for MyShowsTab {
378378
}
379379

380380
fn tab_label(&self) -> iced_aw::TabLabel {
381-
iced_aw::TabLabel::Text("My Shows icon".to_owned())
381+
iced_aw::TabLabel::Text(self.title())
382382
}
383383

384384
fn content(&self) -> Element<'_, Self::Message> {

src/gui/view/settings_view.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Tab for SettingsTab {
8888
}
8989

9090
fn tab_label(&self) -> iced_aw::TabLabel {
91-
iced_aw::TabLabel::Text("Settings icon".to_owned())
91+
iced_aw::TabLabel::Text(self.title())
9292
}
9393

9494
fn content(&self) -> Element<'_, Self::Message> {

src/gui/view/statistics_view.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Tab for StatisticsTab {
120120
}
121121

122122
fn tab_label(&self) -> iced_aw::TabLabel {
123-
iced_aw::TabLabel::Text("Statistics icon".to_owned())
123+
iced_aw::TabLabel::Text(self.title())
124124
}
125125

126126
fn content(&self) -> Element<'_, Self::Message> {

src/gui/view/watchlist_view.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl Tab for WatchlistTab {
162162
}
163163

164164
fn tab_label(&self) -> iced_aw::TabLabel {
165-
iced_aw::TabLabel::Text("Watchlist icon".to_owned())
165+
iced_aw::TabLabel::Text(self.title())
166166
}
167167

168168
fn content(&self) -> Element<'_, Self::Message> {

0 commit comments

Comments
 (0)