Description
Version and Platform (required):
- Binary Ninja Version: 5.0.7218-dev (c480ce0c)
- OS: macOS
- OS Version: 15.2
- CPU Architecture: M1
Bug Description:
When opening a DSC database in a project and the DSC files cannot be found, the user experience is confusing and its not clear what the user is being asked to open. Also the open file dialog is the OS one not the Binary Ninja project file browser one.
Steps To Reproduce:
Please provide all steps required to reproduce the behavior:
- Create a new project.
- Copy all the DSC files into a folder in that project.
- Open the DSC.
- Save the database into a different top level folder in the project to the one with the DSC files in it.
- Close the binary view.
- Open the database in the project.
- Observe that the user is prompted to open a file using the OS file browser and no information is provided to explain what they should be opening. Additionally it should not be the OS file browser but the project file browser that Binary Ninja provides for opening files in a project.
Expected Behavior:
It should be clear to the user what is happening (the plugin can't find the related DSC files) and when being asked to find a file in a project the user should be provided with a project file browser not an OS one because the names of the files on disk for projects are hard to relate to actual files in the project due to their random names.
Additional Information:
This behaviour might be worse on macOS than other platforms due to the file dialogs not have text to indicate what the user should be opening.