Added possibility to Follow/Unfollow artists via the context menu (#868)
* Added possibility to Follow/Unfollow artists via the context menu * Formatted code properly. * Changed Show Artist to Artist (or Artists if there are many).
This commit is contained in:
@@ -11,7 +11,9 @@ use crate::library::Library;
|
||||
use crate::queue::{Queue, RepeatSetting};
|
||||
use crate::spotify::{Spotify, VOLUME_PERCENT};
|
||||
use crate::traits::{IntoBoxedViewExt, ViewExt};
|
||||
use crate::ui::contextmenu::{AddToPlaylistMenu, ContextMenu, PlayTrackMenu, SelectArtistMenu};
|
||||
use crate::ui::contextmenu::{
|
||||
AddToPlaylistMenu, ContextMenu, PlayTrackMenu, SelectArtistActionMenu, SelectArtistMenu,
|
||||
};
|
||||
use crate::ui::help::HelpView;
|
||||
use crate::ui::layout::Layout;
|
||||
use crate::ui::modal::Modal;
|
||||
@@ -301,6 +303,10 @@ impl CommandManager {
|
||||
add_track_menu.on_command(s, cmd)?
|
||||
} else if let Some(mut select_artist) = s.find_name::<SelectArtistMenu>("selectartist") {
|
||||
select_artist.on_command(s, cmd)?
|
||||
} else if let Some(mut select_artist_action) =
|
||||
s.find_name::<SelectArtistActionMenu>("selectartistaction")
|
||||
{
|
||||
select_artist_action.on_command(s, cmd)?
|
||||
} else if let Some(mut play_track) = s.find_name::<PlayTrackMenu>("playtrackmenu") {
|
||||
play_track.on_command(s, cmd)?
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user