mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
removed GlobalEvent
This commit is contained in:
parent
793165578b
commit
8a951ee60f
1 changed files with 1 additions and 8 deletions
|
|
@ -253,13 +253,6 @@ class EventSystem(object):
|
|||
self._registered_callbacks.remove(callback)
|
||||
|
||||
|
||||
class GlobalEvent(Event):
|
||||
def __init__(self, topic, data=None, source=None):
|
||||
event_system = GlobalEventSystem.get_global_event_system()
|
||||
|
||||
super(GlobalEvent, self).__init__(topic, data, source, event_system)
|
||||
|
||||
|
||||
class GlobalEventSystem:
|
||||
_global_event_system = None
|
||||
|
||||
|
|
@ -276,7 +269,7 @@ class GlobalEventSystem:
|
|||
|
||||
@classmethod
|
||||
def emit(cls, topic, data, source):
|
||||
event = GlobalEvent(topic, data, source)
|
||||
event = Event(topic, data, source, cls.get_global_event_system())
|
||||
event.emit()
|
||||
return event
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue