mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibGUI: Remove Layout::try_add_spacer()
And fall back to the infallible add_spacer(). Work towards #20557.
This commit is contained in:
parent
8322b31b97
commit
58e482a06d
22 changed files with 28 additions and 35 deletions
|
@ -49,7 +49,7 @@ ProcessChooser::ProcessChooser(StringView window_title, String button_label, Gfx
|
|||
auto& button_container = widget->add<GUI::Widget>();
|
||||
button_container.set_fixed_height(30);
|
||||
button_container.set_layout<GUI::HorizontalBoxLayout>(GUI::Margins { 0, 4, 0 });
|
||||
button_container.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
button_container.add_spacer();
|
||||
|
||||
auto& select_button = button_container.add<GUI::Button>(m_button_label);
|
||||
select_button.set_fixed_width(80);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue