Skip to content

Commit

Permalink
HexView: Add workspace to view constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Sep 22, 2023
1 parent 10536e5 commit ff8da36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions angrmanagement/ui/views/hex_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion angrmanagement/ui/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ff8da36

Please sign in to comment.