binaryninja-api
binaryninja-api copied to clipboard
Creating data tags doesn't refresh current view
Version and Platform (required):
- Binary Ninja Version: 3.1.3478-dev, 3.0 (not a new issue)
- OS: Windows
- OS Version: 11
- CPU Architecture: x64
Bug Description: I'm adding tags at addresses with bv.create_auto_data_tag, and if a tag is added to the function currently displayed in the UI it does not redraw to show the tags until the user clicks away and comes back to the function.
Steps To Reproduce: Please provide all steps required to reproduce the behavior:
- Execute python bv.create_auto_data_tag(0x1234, bv.tag_types['Bugs'], "foo"), using an address within the current function UI view. (I had a MLIL view open.)
- Observe the view didn't change to show the bug icon.
- Switch the view to a different function, then switch back.
- Observe the bug icon present on the address now.
Expected Behavior: Behavior should go directly from step 1 to 4 in the above sequence, or there should be an API to force a redraw.
Additional Information: Affects user_data_tags as well.