defect
(User-visible)
The TitleButtonsViewProvider collects buttons that are displayed in the ButtonComponent of the sidebar layout. However, it collects buttons from all dialogs—even those that are independent of it.
Only the buttons from its children should be collected.
Test
Start demo:
- Switch to the Sidebar layout.
- Open the "Settings" dialog.
- Expected result: The dialog's buttons are no longer added to the ButtonComponent in the background.