aboutsummaryrefslogtreecommitdiff
path: root/helpers/actions/unpause.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-26 16:35:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-26 16:35:05 +0200
commite4917bcc6c5355a82f05880a389d0a1fd868561d (patch)
tree56f030600ad200632d0e9030c3b470dcb846215d /helpers/actions/unpause.py
parentdb905e0706ab9a1f92102e86f677c66371be4621 (diff)
parentc4f4f2a1d330d8e09021619bbb8dcaac4df0a602 (diff)
downloadMusicSampler-e4917bcc6c5355a82f05880a389d0a1fd868561d.tar.gz
MusicSampler-e4917bcc6c5355a82f05880a389d0a1fd868561d.tar.zst
MusicSampler-e4917bcc6c5355a82f05880a389d0a1fd868561d.zip
Merge branch 'actions_cleanup'
Diffstat (limited to 'helpers/actions/unpause.py')
-rw-r--r--helpers/actions/unpause.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers/actions/unpause.py b/helpers/actions/unpause.py
new file mode 100644
index 0000000..5fa88c3
--- /dev/null
+++ b/helpers/actions/unpause.py
@@ -0,0 +1,10 @@
1def run(action, music=None, **kwargs):
2 for music in action.music_list(music):
3 if music.is_loaded_paused():
4 music.unpause()
5
6def description(action, music=None, **kwargs):
7 if music is not None:
8 return "unpausing « {} »".format(music.name)
9 else:
10 return "unpausing all musics"