]> gitweb.fluxo.info Git - awesompd.git/commitdiff
Make Clear playlist command always appear in Playback menu
authorAlexander Yakushev <yakushev.alex@gmail.com>
Tue, 25 Oct 2011 12:27:00 +0000 (15:27 +0300)
committerAlexander Yakushev <yakushev.alex@gmail.com>
Tue, 25 Oct 2011 12:27:00 +0000 (15:27 +0300)
Previously it was only there when the playback was not stopped

awesompd.lua

index 447a7cd1651d13bde89a7a230b8510f9a0523a1e..d84faac196d50f37bac2a5fe0cb453ef5d3d07af 100644 (file)
@@ -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