aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-10-25 15:27:00 +0300
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-10-25 15:27:00 +0300
commitaaec7a41cbf484e8eaaec685e42c231946de2576 (patch)
tree2ff5ad5883dfc6a59d5a4aa87c53b96245920ab7
parentfb5b067c11d47b372d2edcbf90d62106a3d2edad (diff)
downloadawesompd-aaec7a41cbf484e8eaaec685e42c231946de2576.tar.gz
awesompd-aaec7a41cbf484e8eaaec685e42c231946de2576.tar.bz2
Make Clear playlist command always appear in Playback menu
Previously it was only there when the playback was not stopped
-rw-r--r--awesompd.lua3
1 files changed, 2 insertions, 1 deletions
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