From 2851069f5c031c5f447192c4f7a156c1595edc12 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 21 Sep 2023 17:19:19 -0700 Subject: [PATCH] HexView: Add workspace to view constructor --- angrmanagement/ui/views/hex_view.py | 4 ++-- angrmanagement/ui/workspace.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/angrmanagement/ui/views/hex_view.py b/angrmanagement/ui/views/hex_view.py index 11c95825b..6de3dd8b8 100644 --- a/angrmanagement/ui/views/hex_view.py +++ b/angrmanagement/ui/views/hex_view.py @@ -1319,8 +1319,8 @@ class HexView(ViewStatePublisherMixin, SynchronizedView): _widgets_initialized: bool = False - def __init__(self, instance, default_docking_position, *args, **kwargs): - super().__init__("hex", instance, default_docking_position, *args, **kwargs) + def __init__(self, workspace, instance, default_docking_position, *args, **kwargs): + super().__init__("hex", workspace, instance, default_docking_position, *args, **kwargs) self.base_caption: str = "Hex" self.smart_highlighting_enabled: bool = True self._clipboard = None diff --git a/angrmanagement/ui/workspace.py b/angrmanagement/ui/workspace.py index 95e08b5e3..c58208b20 100644 --- a/angrmanagement/ui/workspace.py +++ b/angrmanagement/ui/workspace.py @@ -818,7 +818,7 @@ def show_log_view(self): self.show_view("log", LogView, position="bottom") def create_and_show_hex_view(self): - view = HexView(self._main_instance, "center") + view = HexView(self, self._main_instance, "center") self.add_view(view) return view