In folder view, allow to add folders and files at the same time.

Closes #1187
This commit is contained in:
Craig Drummond
2018-02-02 16:46:20 +00:00
committed by Craig Drummond
parent f462aab6c0
commit e8514c27f0
2 changed files with 2 additions and 5 deletions

View File

@@ -55,6 +55,7 @@
39. Add original date to playlist table columns.
40. Add option to use 'Original Year' to display and sort albums.
41. Sort folder view items, as MPD does not seem to sort playlist names.
42. In folder view, allow to add folders and files at the same time.
2.2.0
-----

View File

@@ -105,15 +105,11 @@ void FolderPage::controlActions()
} else {
trackSelected=true;
}
if (folderSelected && trackSelected) {
enable=false;
break;
}
}
StdActions::self()->enableAddToPlayQueue(enable);
StdActions::self()->addToStoredPlaylistAction->setEnabled(enable);
bool fileActions = enable && trackSelected && MPDConnection::self()->getDetails().dirReadable;
bool fileActions = trackSelected && !folderSelected && MPDConnection::self()->getDetails().dirReadable;
CustomActions::self()->setEnabled(fileActions);
#ifdef TAGLIB_FOUND
StdActions::self()->organiseFilesAction->setEnabled(fileActions);