aboutsummaryrefslogblamecommitdiff
path: root/music_sampler/actions/unpause.py
blob: 6505ab8c61d7e0c25178ec0d5ed26f950d530177 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                              
                                                           
         
                                        
def run(action, music=None, **kwargs):
    for music in action.music_list(music):
        if music.is_loaded_paused():
            music.unpause()

def description(action, music=None, **kwargs):
    if music is not None:
        return _("unpausing « {} »").format(music.name)
    else:
        return _("unpausing all musics")