Add "append to/replace/... playlist" and "Configure" actions to Spotify items.
This commit is contained in:
parent
82a3c84bf6
commit
e6d76a72a5
|
@ -519,17 +519,20 @@ void SpotifyService::EnsureMenuCreated() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
context_menu_ = new QMenu;
|
context_menu_ = new QMenu;
|
||||||
|
|
||||||
context_menu_->addActions(GetPlaylistActions());
|
|
||||||
context_menu_->addSeparator();
|
|
||||||
context_menu_->addAction(IconLoader::Load("configure"), tr("Configure Spotify..."), this, SLOT(ShowConfig()));
|
context_menu_->addAction(IconLoader::Load("configure"), tr("Configure Spotify..."), this, SLOT(ShowConfig()));
|
||||||
|
|
||||||
playlist_context_menu_ = new QMenu;
|
playlist_context_menu_ = new QMenu;
|
||||||
|
playlist_context_menu_->addActions(GetPlaylistActions());
|
||||||
|
playlist_context_menu_->addSeparator();
|
||||||
playlist_sync_action_ = playlist_context_menu_->addAction(
|
playlist_sync_action_ = playlist_context_menu_->addAction(
|
||||||
IconLoader::Load("view-refresh"),
|
IconLoader::Load("view-refresh"),
|
||||||
tr("Make playlist available offline"),
|
tr("Make playlist available offline"),
|
||||||
this,
|
this,
|
||||||
SLOT(SyncPlaylist()));
|
SLOT(SyncPlaylist()));
|
||||||
|
playlist_context_menu_->addSeparator();
|
||||||
|
playlist_context_menu_->addAction(IconLoader::Load("configure"),
|
||||||
|
tr("Configure Spotify..."),
|
||||||
|
this, SLOT(ShowConfig()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpotifyService::ClearSearchResults() {
|
void SpotifyService::ClearSearchResults() {
|
||||||
|
|
Loading…
Reference in New Issue