X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=blobdiff_plain;f=music_sampler%2Factions%2Freset_wait.py;fp=music_sampler%2Factions%2Freset_wait.py;h=500bcca56ac8042c001426da6e6f48ab6722d18b;hp=0000000000000000000000000000000000000000;hb=d4217fda2ff3991eb1ee9a9bec6acff751798507;hpb=51f6ce0fdb32061b681d63e8de4d96eb8b59e1e9 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 @@ +def run(action, wait_id=None, **kwargs): + action.mapping.reset_wait(wait_id) + +def description(action, wait_id=None, **kwargs): + if wait_id is None: + return _("reset all waits") + else: + return _("reset wait with id {}").format(wait_id)