actions: don't ask for confirmation to clear playlist if it's already empty
This commit is contained in:
committed by
Andrzej Rybczak
parent
809ffada40
commit
4d99dfe940
@@ -1759,7 +1759,7 @@ void CropPlaylist::run()
|
||||
|
||||
void ClearMainPlaylist::run()
|
||||
{
|
||||
if (Config.ask_before_clearing_playlists)
|
||||
if (!myPlaylist->main().empty() && Config.ask_before_clearing_playlists)
|
||||
confirmAction("Do you really want to clear main playlist?");
|
||||
Mpd.ClearMainPlaylist();
|
||||
Statusbar::print("Playlist cleared");
|
||||
|
||||
Reference in New Issue
Block a user