diff options
Diffstat (limited to 'music_sampler/app_blocks/actionlist.py')
-rw-r--r-- | music_sampler/app_blocks/actionlist.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/music_sampler/app_blocks/actionlist.py b/music_sampler/app_blocks/actionlist.py index f48072f..59315de 100644 --- a/music_sampler/app_blocks/actionlist.py +++ b/music_sampler/app_blocks/actionlist.py | |||
@@ -4,6 +4,8 @@ from kivy.uix.relativelayout import RelativeLayout | |||
4 | from kivy.properties import ListProperty, StringProperty | 4 | from kivy.properties import ListProperty, StringProperty |
5 | from ..lock import Lock | 5 | from ..lock import Lock |
6 | 6 | ||
7 | from kivy.clock import mainthread | ||
8 | |||
7 | __all__ = ["ActionList", | 9 | __all__ = ["ActionList", |
8 | "ActionListIcons", "ActionListIcon", | 10 | "ActionListIcons", "ActionListIcon", |
9 | "ActionListDescriptions", "ActionListDescription"] | 11 | "ActionListDescriptions", "ActionListDescription"] |
@@ -14,6 +16,7 @@ class ActionList(RelativeLayout): | |||
14 | action_title = StringProperty("") | 16 | action_title = StringProperty("") |
15 | action_list = ListProperty([]) | 17 | action_list = ListProperty([]) |
16 | 18 | ||
19 | @mainthread | ||
17 | def update_list(self, key, action_descriptions): | 20 | def update_list(self, key, action_descriptions): |
18 | if key.repeat_delay > 0: | 21 | if key.repeat_delay > 0: |
19 | self.action_title = _( | 22 | self.action_title = _( |