Closed whitequark closed 3 years ago
Setting the result
in advance does not make it the default. We should provide a mechanism to set default.
Once it is implemented, https://github.com/Vector35/binaryninja-api/blob/dev/python/examples/export_svg.py should be updated to set the default IL view.
We recommend using a UI Plugin now and will not likely be adding additional functionality to these APIs.
Also, to clarify, there is a small-work-around as well using interaction of just ordering the list such that the desired default is first. It's not great, but raw PySide will always be the right solution for more complicated UI elements at this point.
For example, I'm trying to make a plugin that simplifies changing ABI of a function:
Right now, the dialog always appears with the first result selected in it, regardless of what I put into
cconv_field.result
. Actually, looking at the code, there already seems to be functionality for handling this case (_fill_core_result
), not sure why it doesn't work.