aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/actions/reset_wait.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-12 18:21:22 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-12 18:23:02 +0200
commitd4217fda2ff3991eb1ee9a9bec6acff751798507 (patch)
tree5a7606c28aa5845d1ffebb78742e2d2c2fe39c5a /music_sampler/actions/reset_wait.py
parent51f6ce0fdb32061b681d63e8de4d96eb8b59e1e9 (diff)
downloadMusicSampler-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/reset_wait.py')
-rw-r--r--music_sampler/actions/reset_wait.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/music_sampler/actions/reset_wait.py b/music_sampler/actions/reset_wait.py
new file mode 100644
index 0000000..500bcca
--- /dev/null
+++ b/music_sampler/actions/reset_wait.py
@@ -0,0 +1,8 @@
1def run(action, wait_id=None, **kwargs):
2 action.mapping.reset_wait(wait_id)
3
4def description(action, wait_id=None, **kwargs):
5 if wait_id is None:
6 return _("reset all waits")
7 else:
8 return _("reset wait with id {}").format(wait_id)