hide Tracks: make removal from playlists and crates optional #14136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I propose to make hiding from playlists and crates optional.
As described in #14135 the UX is currently inconsistent and not suitable for my use case.
(I have many short recordings I don't want to see in the Tracks view, but rather have them organized in a 'Samples/rec' crate)
(same may apply to playlists)
Make hiding tracks from playlists optional (they always remain in History) is easy, however, when selecting a playlist it calls
PlaylistDAO::removeHiddenTracks(playlistId)
which removes them : |IIUC this function is simply there to have consistent UX with older databases (see quoted comment below).
So according to this comment, that actually needs to be run on all playlists (except History?) but only when upgrading from Mixxx 2.1, because in later versions tracks are removed immediately.
mixxx/src/library/playlisttablemodel.cpp
Lines 150 to 155 in c04076a
What do you think?
Furthermore, there's an inconsistency Playlists vs. Crates when hiding tracks:
edit figured that out, see first comment
Related bugs:
#10711
#14135
TODO