settings: add config option to not confirm shuffling playlist

This commit is contained in:
Asa Sourdiffe
2015-12-22 12:21:20 -08:00
committed by Andrzej Rybczak
parent d2db864293
commit 20f37968c2
4 changed files with 7 additions and 1 deletions

View File

@@ -1215,7 +1215,8 @@ bool Shuffle::canBeRun()
void Shuffle::run()
{
confirmAction("Do you really want to shuffle selected range?");
if (Config.ask_before_shuffling_playlists)
confirmAction("Do you really want to shuffle selected range?");
auto begin = myPlaylist->main().begin();
Mpd.ShuffleRange(m_begin-begin, m_end-begin);
Statusbar::print("Range shuffled");