Fix spelling mistake

This commit is contained in:
Qluxzz
2021-03-05 21:04:17 +01:00
committed by Henrik Friedrichsen
parent 6e2b108284
commit 3d11b2c333
4 changed files with 8 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ enum ContextMenuAction {
SelectArtist(Vec<Artist>),
ShareUrl(String),
AddToPlaylist(Box<Track>),
ShowRecommentations(Box<dyn ListItem>),
ShowRecommendations(Box<dyn ListItem>),
ToggleTrackSavedStatus(Box<Track>),
}
@@ -163,7 +163,7 @@ impl ContextMenu {
);
content.add_item(
"Similar tracks",
ContextMenuAction::ShowRecommentations(Box::new(t.clone())),
ContextMenuAction::ShowRecommendations(Box::new(t.clone())),
);
content.add_item(
match library.is_saved_track(&Playable::Track(t.clone())) {
@@ -195,8 +195,8 @@ impl ContextMenu {
Self::add_track_dialog(library, queue.get_spotify(), *track.clone());
s.add_layer(dialog);
}
ContextMenuAction::ShowRecommentations(item) => {
if let Some(view) = item.open_recommentations(queue, library) {
ContextMenuAction::ShowRecommendations(item) => {
if let Some(view) = item.open_recommendations(queue, library) {
s.call_on_name("main", move |v: &mut Layout| v.push_view(view));
}
}