]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/action.py
Add other_only flag to stop_all_actions
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / action.py
index 6ac47b199015c61b9015e3e347c26d37a9549300..4b5a71d3806275b5bf16198be985fda052f7b61f 100644 (file)
@@ -80,10 +80,11 @@ class Action:
             error_print("Unknown action {}".format(self.action))
             self.fail()
 
-    def on_enter_loaded_running(self):
+    def on_enter_loaded_running(self, key_start_time):
         debug_print(self.description())
         if hasattr(actions, self.action):
-            getattr(actions, self.action).run(self, **self.arguments)
+            getattr(actions, self.action).run(self,
+                    key_start_time=key_start_time, **self.arguments)
 
     def poll_loaded(self):
         self.key.callback_action_ready(self,