aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/actions/interrupt_wait.py
blob: b36762809418e710718d547db0bcbe219eba0b7c (plain) (blame)
1
2
3
4
5
6
7
8
def run(action, wait_id=None, **kwargs):
    action.mapping.interrupt_wait(wait_id)

def description(action, wait_id=None, **kwargs):
    if wait_id is None:
        return _("interrupt all waits")
    else:
        return _("interrupt wait with id {}").format(wait_id)