Only show playlist add file(s) to transcoder when songs are selected

This commit is contained in:
Jonas Kvinge
2020-08-06 18:37:17 +02:00
parent 9f01206c57
commit a4f692c788

View File

@@ -1688,6 +1688,11 @@ void MainWindow::PlaylistRightClick(const QPoint &global_pos, const QModelIndex
ui_->action_rescan_songs->setEnabled(editable);
ui_->action_rescan_songs->setVisible(editable);
#ifdef HAVE_GSTREAMER
ui_->action_add_files_to_transcoder->setEnabled(editable);
ui_->action_add_files_to_transcoder->setVisible(editable);
#endif
// the rest of the read / write actions work only when there are no CUEs involved
if (cue_selected) editable = 0;