diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-12 18:21:22 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-12 18:23:02 +0200 |
commit | d4217fda2ff3991eb1ee9a9bec6acff751798507 (patch) | |
tree | 5a7606c28aa5845d1ffebb78742e2d2c2fe39c5a /music_sampler/actions/pause_wait.py | |
parent | 51f6ce0fdb32061b681d63e8de4d96eb8b59e1e9 (diff) | |
download | MusicSampler-d4217fda2ff3991eb1ee9a9bec6acff751798507.tar.gz MusicSampler-d4217fda2ff3991eb1ee9a9bec6acff751798507.tar.zst MusicSampler-d4217fda2ff3991eb1ee9a9bec6acff751798507.zip |
wait actions are now pausable and resettable1.2.3
This fixes https://git.immae.eu/mantisbt/view.php?id=6
Diffstat (limited to 'music_sampler/actions/pause_wait.py')
-rw-r--r-- | music_sampler/actions/pause_wait.py | 8 |
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 @@ | |||
1 | def run(action, wait_id=None, **kwargs): | ||
2 | action.mapping.pause_wait(wait_id) | ||
3 | |||
4 | def 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) | ||