binaryninja-api
binaryninja-api copied to clipboard
Renamed Functions via API Don't Show in Main View Without Doing Something to Make Them Show
Version and Platform (required):
- Binary Ninja Version: 5.3.8726-dev Ultimate, 8589bdfe
- OS: macos
- OS Version: 26.1.0
- CPU Architecture: arm64
Bug Description: If I change many function names via plugin, they appear immediately in the symbols pane, but don't change in the main view until you navigate away and back or do something like that to get them to appear.
Steps To Reproduce:
- Open this file:
time tensor mounts intensely - Run this plugin from
_startevening search integrates distinctly
Expected Behavior: Renamed functions appear immediately like in symbols pane.
Not a fix, but a temporary work-around for those experiencing the same issue:
from binaryninjaui import UIContext
# Refresh the view
ui_context = UIContext.activeContext()
if ui_context:
view_frame = ui_context.getCurrentViewFrame()
if view_frame:
view_frame.refreshContents()