From aaec7a41cbf484e8eaaec685e42c231946de2576 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Tue, 25 Oct 2011 15:27:00 +0300 Subject: Make Clear playlist command always appear in Playback menu Previously it was only there when the playback was not stopped --- awesompd.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awesompd.lua b/awesompd.lua index 447a7cd..d84faac 100644 --- a/awesompd.lua +++ b/awesompd.lua @@ -387,6 +387,7 @@ end -- Next - if the current track is not the last -- in the list and playback is not stopped -- Stop - if the playback is not stopped +-- Clear playlist - always function awesompd:menu_playback() if self.recreate_playback then local new_menu = {} @@ -412,8 +413,8 @@ function awesompd:menu_playback() end table.insert(new_menu, { "Stop", self:command_stop(), self.ICONS.STOP }) table.insert(new_menu, { "", nil }) - table.insert(new_menu, { "Clear playlist", self:command_clear_playlist() }) end + table.insert(new_menu, { "Clear playlist", self:command_clear_playlist() }) self.recreate_playback = false playback_menu = new_menu end -- cgit v1.2.3