[Mod] only register event if event_type is specified
This commit is contained in:
parent
adc148c593
commit
82aeceff70
@ -237,8 +237,9 @@ class BaseMonitor(QtWidgets.QTableWidget):
|
||||
"""
|
||||
Register event handler into event engine.
|
||||
"""
|
||||
self.signal.connect(self.process_event)
|
||||
self.event_engine.register(self.event_type, self.signal.emit)
|
||||
if self.event_type:
|
||||
self.signal.connect(self.process_event)
|
||||
self.event_engine.register(self.event_type, self.signal.emit)
|
||||
|
||||
def process_event(self, event):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user