In folder view, allow to add folders and files at the same time.
Closes #1187
This commit is contained in:
committed by
Craig Drummond
parent
f462aab6c0
commit
e8514c27f0
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user