diff --git a/python/idabincat/bcplugin.py b/python/idabincat/bcplugin.py index 2d72a280..9d41633f 100755 --- a/python/idabincat/bcplugin.py +++ b/python/idabincat/bcplugin.py @@ -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: diff --git a/python/idabincat/gui.py b/python/idabincat/gui.py index 7f70bcb0..cbbf02e6 100644 --- a/python/idabincat/gui.py +++ b/python/idabincat/gui.py @@ -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()