Use ViewExt.title() in TabView
Instead of storing a separate copy of the view title. Additionally, rename `ViewExt.set_title()` to `ViewExt.with_title()` as it consumes `self` and returns ownership.
This commit is contained in:
@@ -312,7 +312,7 @@ impl ListItem for Playlist {
|
||||
queue.clone(),
|
||||
library.clone(),
|
||||
)
|
||||
.set_title(format!("Similar to Tracks in \"{}\"", self.name,))
|
||||
.with_title(&format!("Similar to Tracks in \"{}\"", self.name))
|
||||
.into_boxed_view_ext()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user