Force UI Redraw in File Browser

I have developed functionality that implements an asset browser into the FILE_BROWSER space. The library selections are located on the left panel and the library navigation options are in the file browser header. The Home Builder library has a lot more filtering options compared to the other libraries. When switching libraries the navigation options change. Here is what the home builder library header looks like and this is what the material library header looks like.

When switching to the material library then back to the home builder library the panel doesn’t expand enough to show all of the options.

I have tried everything I can think of to force the header to refresh, but the only way to get the panel to redraw is the collapse the file browser space and reopen a new one.

Does anyone know how to force the File Browser space to redraw with the Python API, or know where in Blenders source I can make the modification to force the UI to update?

3 Likes