diff options
| author | 2020-02-09 10:14:14 +0000 | |
|---|---|---|
| committer | 2020-02-09 10:14:14 +0000 | |
| commit | 94197b33a2cad41ed9c2bad3df9f96c1a14b8587 (patch) | |
| tree | 9e47bc26f539d16b034c9e25c796ce2017a67541 /src/EventManager.py | |
| parent | Merge branch 'master' into develop (diff) | |
| signature | ||
insert new hooks at the start of their priority, to prevent duplicates on reload
Diffstat (limited to 'src/EventManager.py')
| -rw-r--r-- | src/EventManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventManager.py b/src/EventManager.py index f10ebcd4..cef82f26 100644 --- a/src/EventManager.py +++ b/src/EventManager.py @@ -165,7 +165,7 @@ class EventRoot(object): hook_array.insert(i, new_hook) break if not hooked: - hook_array.append(new_hook) + hook_array.insert(0, new_hook) return new_hook def _call(self, path: typing.List[str], kwargs: dict, safe: bool, |
