Skip to content

Commit

Permalink
Focus registers when analysis is done
Browse files Browse the repository at this point in the history
  • Loading branch information
trou committed Jun 8, 2018
1 parent 0a63215 commit 8a114bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/idabincat/bcplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ def analysis_finish_cb(self, outfname, logfname, cfaoutfname, ea=None):
else:
idaapi.set_item_color(ea, 0xF0F0F0)
idaapi.hide_wait_box()
self.gui.focus_registers()

def set_current_node(self, node_id):
if self.cfa:
Expand Down
6 changes: 6 additions & 0 deletions python/idabincat/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,12 @@ def __init__(self, state):
self.hooks = Hooks(state, self)
self.hooks.hook()

def focus_registers(self):
if getattr(idaapi, "activate_widget"):
widget = idaapi.find_widget("BinCAT Registers")
if widget:
idaapi.activate_widget(widget, True)

def show_windows(self):
# XXX hide debug form by default (issue #27)
self.BinCATDebugForm.Show()
Expand Down

0 comments on commit 8a114bf

Please sign in to comment.