From a8db4e8cda2d66789f4bdb21e1000c9d7860cde2 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 12 Aug 2023 09:40:25 -0400 Subject: Fix typo in components callbacks. --- python/binaryview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/binaryview.py') 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) -- cgit v1.3.1