Make sure the view item the context menu is spawned from is always activated. The brush assets context menu relies on that (it accesses the active brush from paint settings, and the brush needs to be imported to apply operations like "Edit Metadata"). Had to refactor how closing the popup on activation works. It's now a general view feature and enabled by default. Can be disabled using `ui::AbstractView::set_popup_keep_open()`. Pull Request: https://projects.blender.org/blender/blender/pulls/124043 Part of the brush assets project, see: - https://projects.blender.org/blender/blender/issues/116337 - https://projects.blender.org/blender/blender/pulls/106303