Warn before permanently reshuffling the current playlist
Reshuffling a playlist using the WPS context menu for the current playlist is a destructive operation since the previous order of items can't be restored. A warning should be displayed, so that the user can still cancel the operation in case they intended to select another menu item (e.g. one of the harmless "Playing Time" or "Save Current Playlist" items right next to it). Change-Id: Ib9fc379439d155be907872d77cf54d5035bd08a0
This commit is contained in:
parent
05f1006246
commit
317908e8c3
1 changed files with 2 additions and 0 deletions
|
@ -446,6 +446,8 @@ static bool playing_time(void)
|
|||
/* CONTEXT_WPS playlist options */
|
||||
static bool shuffle_playlist(void)
|
||||
{
|
||||
if (!warn_on_pl_erase())
|
||||
return false;
|
||||
playlist_sort(NULL, true);
|
||||
playlist_randomise(NULL, current_tick, true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue