summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2023-08-12 09:40:25 -0400
committerBrian Potchik <brian@vector35.com>2023-08-12 09:40:25 -0400
commita8db4e8cda2d66789f4bdb21e1000c9d7860cde2 (patch)
tree4d730a6b35587233745572aa04d54f30e3eef8e5 /python/binaryview.py
parent9d63dbb1bc08c9f2cb5a4b0ee1b00581e42a211d (diff)
Fix typo in components callbacks.
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 999063f7..090b8921 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -631,7 +631,9 @@ class BinaryDataNotificationCallbacks:
if notify.notifications & NotificationType.ComponentFunctionRemoved:
self._cb.componentFunctionRemoved = self._cb.componentFunctionRemoved.__class__(self._component_function_removed)
if notify.notifications & NotificationType.ComponentDataVariableAdded:
- self._cb.componentDataVariableAdded = self._cb.componentDataVariableAdded.__class__(self._component_data_variable)
+ self._cb.componentDataVariableAdded = self._cb.componentDataVariableAdded.__class__(self._component_data_variable_added)
+ if notify.notifications & NotificationType.ComponentDataVariableRemoved:
+ self._cb.componentDataVariableRemoved = self._cb.componentDataVariableRemoved.__class__(self._component_data_variable_removed)
def _register(self) -> None:
core.BNRegisterDataNotification(self._view.handle, self._cb)