Customizable Current Playlist Submenu

Options to add shuffled tracks and to queue tracks in the
Current Playlist Submenu can now be hidden, or the latter
can also be put into its own submenu.
Users can customize this in Settings  by going to
"General Settings - Playlists -> Current Playlist" and
choosing from "Show Shuffled Adding Options"  (No / Yes)
or "Show Queue Options" (No / Yes / In Submenu).

Allows for the paring down of the set of choices to
a minimum of the 4 more common ones for adding tracks
to a dynamic playlist (coming from the current total
of 11).

Defaults have been set so that users have to actively
modify their settings to notice any difference, which
makes it unlikely that anybody's workflow would be
negatively affected by this change.

Change-Id: Ibe48fc4da2c79f54cd7272df8e1e3ba9955203e5
This commit is contained in:
Christian Soffke 2021-03-12 19:24:58 +01:00 committed by Solomon Peachy
parent 99383a0f9b
commit 2d8e0f7c90
9 changed files with 242 additions and 61 deletions

View file

@ -109,6 +109,12 @@ enum
NUM_REPEAT_MODES
};
enum
{
QUEUE_HIDE = 0,
QUEUE_SHOW_AT_TOPLEVEL,
QUEUE_SHOW_IN_SUBMENU
};
/* dir filter options */
/* Note: Any new filter modes need to be added before NUM_FILTER_MODES.
@ -574,6 +580,8 @@ struct user_settings
bool fade_on_stop; /* fade on pause/unpause/stop */
bool playlist_shuffle;
bool warnon_erase_dynplaylist; /* warn when erasing dynamic playlist */
bool show_shuffled_adding_options; /* whether to display options for adding shuffled tracks to dynamic playlist */
int show_queue_options; /* how and whether to display options to queue tracks */
/* playlist viewer settings */
bool playlist_viewer_icons; /* display icons on viewer */