CollectionView: Remove useless variable

This commit is contained in:
Jonas Kvinge 2023-07-21 07:15:42 +02:00
parent ee5fa23a7a
commit b55a0df8e1
1 changed files with 2 additions and 3 deletions

View File

@ -404,7 +404,6 @@ void CollectionView::contextMenuEvent(QContextMenuEvent *e) {
}
const int songs_selected = regular_elements;
const bool regular_elements_only = songs_selected == regular_elements && regular_elements > 0;
// in all modes
action_load_->setEnabled(songs_selected > 0);
@ -432,8 +431,8 @@ void CollectionView::contextMenuEvent(QContextMenuEvent *e) {
action_delete_files_->setVisible(false);
#endif
action_show_in_various_->setVisible(regular_elements_only);
action_no_show_in_various_->setVisible(regular_elements_only);
action_show_in_various_->setVisible(songs_selected > 0);
action_no_show_in_various_->setVisible(songs_selected > 0);
// only when all selected items are editable
action_organize_->setEnabled(regular_elements == regular_editable);