From: Alexander Yakushev Date: Tue, 25 Oct 2011 12:27:00 +0000 (+0300) Subject: Make Clear playlist command always appear in Playback menu X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=aaec7a41cbf484e8eaaec685e42c231946de2576;p=awesompd.git Make Clear playlist command always appear in Playback menu Previously it was only there when the playback was not stopped --- 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