aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-26 16:25:35 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-26 16:25:35 +0200
commita1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45 (patch)
treea89da8a595171b68550df5c60e56c5ec042aa5ab
parent05d0d2ed0672aeb2e056c8af79bebde9c8b27199 (diff)
downloadMusicSampler-a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45.tar.gz
MusicSampler-a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45.tar.zst
MusicSampler-a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45.zip
Stop all actions before leaving
-rw-r--r--helpers/mapping.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers/mapping.py b/helpers/mapping.py
index 1f63459..6e3b291 100644
--- a/helpers/mapping.py
+++ b/helpers/mapping.py
@@ -71,6 +71,7 @@ class Mapping(RelativeLayout):
71 if len(modifiers) == 0 and key is not None: 71 if len(modifiers) == 0 and key is not None:
72 threading.Thread(name="MSKeyAction", target=key.run).start() 72 threading.Thread(name="MSKeyAction", target=key.run).start()
73 elif 'ctrl' in modifiers and (keycode[0] == 113 or keycode[0] == '99'): 73 elif 'ctrl' in modifiers and (keycode[0] == 113 or keycode[0] == '99'):
74 self.stop_all_running()
74 for thread in threading.enumerate(): 75 for thread in threading.enumerate():
75 if thread.getName()[0:2] != "MS": 76 if thread.getName()[0:2] != "MS":
76 continue 77 continue