aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/actions/pause_wait.py
diff options
context:
space:
mode:
Diffstat (limited to 'music_sampler/actions/pause_wait.py')
-rw-r--r--music_sampler/actions/pause_wait.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/music_sampler/actions/pause_wait.py b/music_sampler/actions/pause_wait.py
new file mode 100644
index 0000000..e4ab6ea
--- /dev/null
+++ b/music_sampler/actions/pause_wait.py
@@ -0,0 +1,8 @@
1def run(action, wait_id=None, **kwargs):
2 action.mapping.pause_wait(wait_id)
3
4def description(action, wait_id=None, **kwargs):
5 if wait_id is None:
6 return _("pause all waits")
7 else:
8 return _("pause wait with id {}").format(wait_id)